do not crash if we get an empty message

This commit is contained in:
Yann Leboulanger 2005-03-27 08:40:42 +00:00
parent b40a87922e
commit f2e07f4f77
1 changed files with 2 additions and 0 deletions

View File

@ -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])