Commit e5e63d47 authored by mathieui's avatar mathieui

Prevent messages with typ=0 from being logged

(new typ value)
parent 7538093a
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment