diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-03-29 14:39:51 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-03-29 14:39:51 +0200 |
commit | 25162f0a064c7412a22654d83c8f1ef92f605d82 (patch) | |
tree | 73023f71e6d72329c1dfb16ba34807181c8a1e4a /src | |
parent | 38cffe43b6adab115fb65635034a0b2db9f2c26d (diff) | |
download | poezio-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
Diffstat (limited to 'src')
-rw-r--r-- | src/text_buffer.py | 2 |
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) |