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)