From 1f2959d96e53679ccc4fe7e9ecf04a7320cb2a53 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Wed, 5 Jan 2011 01:41:19 +0000 Subject: correctly displays a message in ConversationTabs when a resource goes offline --- src/text_buffer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/text_buffer.py') diff --git a/src/text_buffer.py b/src/text_buffer.py index 8e46bcad..828b344c 100644 --- a/src/text_buffer.py +++ b/src/text_buffer.py @@ -32,7 +32,6 @@ class TextBuffer(object): This class just keep trace of messages, in a list with various informations and attributes. """ - def __init__(self): self.messages = [] # Message objects self.windows = [] # we keep track of one or more windows @@ -43,7 +42,7 @@ class TextBuffer(object): self.windows.append(win) def add_message(self, txt, time=None, nickname=None, colorized=False, nick_color=None): - color = theme.COLOR_NORMAL_TEXT + color = theme.COLOR_NORMAL_TEXT if nickname is not None else theme.COLOR_INFORMATION_TEXT nick_color = nick_color time = time or datetime.now() msg = Message(txt, time, nickname, nick_color, color, colorized) -- cgit v1.2.3