summaryrefslogtreecommitdiff
path: root/src/text_buffer.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-31 00:36:15 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-03-31 00:36:15 +0200
commit63e4833b0934c995ac46fc33f02fad7cc652b454 (patch)
tree9a8cc573cf0fb2b1c3f5828874785f7ccec1efac /src/text_buffer.py
parenteac38e03161bdc681ad09719c937aa3463703dbe (diff)
downloadpoezio-63e4833b0934c995ac46fc33f02fad7cc652b454.tar.gz
poezio-63e4833b0934c995ac46fc33f02fad7cc652b454.tar.bz2
poezio-63e4833b0934c995ac46fc33f02fad7cc652b454.tar.xz
poezio-63e4833b0934c995ac46fc33f02fad7cc652b454.zip
Fix a crash on normal messages, and add colors to information messages
Diffstat (limited to 'src/text_buffer.py')
-rw-r--r--src/text_buffer.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/text_buffer.py b/src/text_buffer.py
index 523dcadc..61c08994 100644
--- a/src/text_buffer.py
+++ b/src/text_buffer.py
@@ -45,7 +45,6 @@ class TextBuffer(object):
self.windows.append(win)
def add_message(self, txt, time=None, nickname=None, nick_color=None):
- nick_color = nick_color
msg = Message(txt='%s\x19o'%(txt,), nick_color=nick_color,
time=time or datetime.now(), nickname=nickname, user=None)
self.messages.append(msg)