bugfix in logger.py

This commit is contained in:
Yann Leboulanger 2005-03-28 13:35:08 +00:00
parent 97d6098491
commit b00123c039
1 changed files with 2 additions and 2 deletions

View File

@ -100,9 +100,9 @@ class plugin:
break
if ev[1] in self.no_log_for[ev[1]]:
break
if not msg:
if not ev[2][1]:
msg = ''
msg = ev[2][1].replace('\n', '\\n')
msg = msg.replace('\n', '\\n')
fic = open(LOGPATH + jid, "a")
t = time.mktime(ev[2][2])
fic.write("%s:recv:%s\n" % (t, msg))