From a519b90cbac7cc2b7cc95a7623c597c1d20b8f8c Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Wed, 9 Mar 2011 18:15:01 +0100 Subject: Avoid stupid traceback on normal message --- src/text_buffer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/text_buffer.py b/src/text_buffer.py index 06847f28..832ce2f3 100644 --- a/src/text_buffer.py +++ b/src/text_buffer.py @@ -46,11 +46,11 @@ class TextBuffer(object): msg = {'txt': txt, 'colorized':colorized, 'time':time or datetime.now()} if nickname: - message['nickname'] = nickname + msg['nickname'] = nickname if nick_color: - message['nick_color'] = nick_color + msg['nick_color'] = nick_color if color: - message['color'] = color + msg['color'] = color self.messages.append(msg) while len(self.messages) > self.messages_nb_limit: self.messages.pop(0) -- cgit v1.2.3