summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-29 14:39:51 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-03-29 14:39:51 +0200
commit25162f0a064c7412a22654d83c8f1ef92f605d82 (patch)
tree73023f71e6d72329c1dfb16ba34807181c8a1e4a
parent38cffe43b6adab115fb65635034a0b2db9f2c26d (diff)
downloadpoezio-25162f0a064c7412a22654d83c8f1ef92f605d82.tar.gz
poezio-25162f0a064c7412a22654d83c8f1ef92f605d82.tar.bz2
poezio-25162f0a064c7412a22654d83c8f1ef92f605d82.tar.xz
poezio-25162f0a064c7412a22654d83c8f1ef92f605d82.zip
Messages in text_buffer should not be colored when they
have no nickname
-rw-r--r--src/text_buffer.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/text_buffer.py b/src/text_buffer.py
index a53eedf6..523dcadc 100644
--- a/src/text_buffer.py
+++ b/src/text_buffer.py
@@ -45,8 +45,6 @@ class TextBuffer(object):
self.windows.append(win)
def add_message(self, txt, time=None, nickname=None, nick_color=None):
- if not nickname:
- txt = '\x195%s' % (txt,)
nick_color = nick_color
msg = Message(txt='%s\x19o'%(txt,), nick_color=nick_color,
time=time or datetime.now(), nickname=nickname, user=None)