logger fix

This commit is contained in:
Yann Leboulanger 2005-03-28 15:19:52 +00:00
parent b00123c039
commit e404f1df65
1 changed files with 2 additions and 1 deletions

View File

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