summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-09 18:15:01 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-03-09 18:15:01 +0100
commita519b90cbac7cc2b7cc95a7623c597c1d20b8f8c (patch)
treea5fc9c7da89ee39c3bc90851c2f3cea812ab2d1e /src
parent769b6ec33b6bacc24f825c40a66d6327af383ae9 (diff)
downloadpoezio-a519b90cbac7cc2b7cc95a7623c597c1d20b8f8c.tar.gz
poezio-a519b90cbac7cc2b7cc95a7623c597c1d20b8f8c.tar.bz2
poezio-a519b90cbac7cc2b7cc95a7623c597c1d20b8f8c.tar.xz
poezio-a519b90cbac7cc2b7cc95a7623c597c1d20b8f8c.zip
Avoid stupid traceback on normal message
Diffstat (limited to 'src')
-rw-r--r--src/text_buffer.py6
1 files 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)