Prevent messages with typ=0 from being logged
(new typ value)
This commit is contained in:
parent
7538093a07
commit
e5e63d4725
1 changed files with 6 additions and 1 deletions
|
@ -169,9 +169,14 @@ class Logger(object):
|
|||
def log_message(self, jid, nick, msg, date=None, typ=1):
|
||||
"""
|
||||
log the message in the appropriate jid's file
|
||||
type: 1 = Message
|
||||
type:
|
||||
0 = Don’t log
|
||||
1 = Message
|
||||
2 = Status/whatever
|
||||
"""
|
||||
if not typ:
|
||||
return True
|
||||
|
||||
jid = str(jid).replace('/', '\\')
|
||||
if config.get_by_tabname('use_log', 'false', jid) != 'true':
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue