diff --git a/plugins/logger/logger.py b/plugins/logger/logger.py index 5d2062e2c763c01d6b176f0e5e1366ff01d8c83c..a0090e6c2d5082c8e65bc350024cfc2c0fa2a1b4 100644 --- a/plugins/logger/logger.py +++ b/plugins/logger/logger.py @@ -100,6 +100,8 @@ class plugin: break if ev[1] in self.no_log_for[ev[1]]: break + if not msg: + msg = '' msg = ev[2][1].replace('\n', '\\n') fic = open(LOGPATH + jid, "a") t = time.mktime(ev[2][2])