diff options
Diffstat (limited to 'src/logger.py')
-rw-r--r-- | src/logger.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/logger.py b/src/logger.py index 79d5296d..3fced6c1 100644 --- a/src/logger.py +++ b/src/logger.py @@ -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 |