Prevent messages with typ=0 from being logged

(new typ value)
This commit is contained in:
mathieui 2013-07-08 21:41:36 +02:00
parent 7538093a07
commit e5e63d4725

View file

@ -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 = Dont 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