summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-06-22 00:17:55 +0200
committermathieui <mathieui@mathieui.net>2013-06-22 00:17:55 +0200
commit6c046fe16165d9a2161c5b12edf70be76df8c25b (patch)
tree443390d9a3addec94c4f74af7fdb596f548596d9 /src/tabs.py
parentcf6d317824b520540f1728360bcae2204c7ad1e7 (diff)
downloadpoezio-6c046fe16165d9a2161c5b12edf70be76df8c25b.tar.gz
poezio-6c046fe16165d9a2161c5b12edf70be76df8c25b.tar.bz2
poezio-6c046fe16165d9a2161c5b12edf70be76df8c25b.tar.xz
poezio-6c046fe16165d9a2161c5b12edf70be76df8c25b.zip
Parse the new log format to display it. (ref #2311)
Archiving old logs is recommended before running this update, just in case.
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/tabs.py b/src/tabs.py
index d4267c59..f619cc12 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -468,15 +468,8 @@ class ChatTab(Tab):
else:
logs = logger.get_logs(safeJID(self.get_name()).bare, log_nb)
if logs:
- for log_line in logs:
- log_line = '\x19%s}%s' % (dump_tuple(get_theme().COLOR_INFORMATION_TEXT), log_line)
- self._text_buffer.add_message(
- txt=log_line.strip(),
- time='',
- nickname='',
- user='',
- str_time=''
- )
+ for message in logs:
+ self._text_buffer.add_message(**message)
def log_message(self, txt, nickname, time=None, typ=1):
"""