Skip to content
Snippets Groups Projects
Commit f2e07f4f authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

do not crash if we get an empty message

parent b40a8792
No related branches found
No related tags found
No related merge requests found
......@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment