summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-05-27 23:36:52 +0200
committermathieui <mathieui@mathieui.net>2011-05-27 23:36:52 +0200
commit1c9fc655dd9cd662f751742453caae071f88e57b (patch)
treed735913206193893c3fd48548057b25f074152f7
parent2d570a402887b01969b9422f9392813271a29866 (diff)
downloadpoezio-1c9fc655dd9cd662f751742453caae071f88e57b.tar.gz
poezio-1c9fc655dd9cd662f751742453caae071f88e57b.tar.bz2
poezio-1c9fc655dd9cd662f751742453caae071f88e57b.tar.xz
poezio-1c9fc655dd9cd662f751742453caae071f88e57b.zip
Fixes #2174
-rw-r--r--src/logger.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logger.py b/src/logger.py
index 4078c46a..ad615f9b 100644
--- a/src/logger.py
+++ b/src/logger.py
@@ -19,6 +19,7 @@ from os import environ, makedirs
import os
from datetime import datetime
from config import config
+from xhtml import clean_text
import logging
@@ -70,6 +71,7 @@ class Logger(object):
if not fd:
return
try:
+ msg = clean_text(msg)
if nick:
fd.write(datetime.now().strftime('%d-%m-%y [%H:%M:%S] ')+nick+': '+msg+'\n')
else: