From 7bf63c51e2650042932ad78207ce5366bab3e38a Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 6 Nov 2011 15:57:03 +0100 Subject: Fix a remaining crash from the Room class deletion. --- src/tabs.py | 7 +++---- src/text_buffer.py | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index b4d4ef44..1209038c 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -389,7 +389,7 @@ class ChatTab(Tab): def move_separator(self): self.text_win.remove_line_separator() self.text_win.add_line_separator() - self.text_win.refresh(self._text_buffer) + self.text_win.refresh() self.input.refresh() def command_say(self, line): @@ -607,9 +607,8 @@ class MucTab(ChatTab): /topic [new topic] """ if not arg.strip(): - self._text_buffer.add_message_to_text_buffer(self, - _("The subject of the room is: %s") % self.topic) - self.text_win.refresh(self._text_buffer) + self._text_buffer.add_message(_("The subject of the room is: %s") % self.topic) + self.text_win.refresh() self.input.refresh() return subject = arg diff --git a/src/text_buffer.py b/src/text_buffer.py index eb4b7b79..94bd94b9 100644 --- a/src/text_buffer.py +++ b/src/text_buffer.py @@ -40,7 +40,6 @@ class TextBuffer(object): time=time, str_time=time.strftime("%Y-%m-%d %H:%M:%S")\ if history else time.strftime("%H:%M:%S"),\ nickname=nickname, user=user) - log.debug('Coucou, le message ajouté : %s' % (msg,)) self.messages.append(msg) while len(self.messages) > self.messages_nb_limit: self.messages.pop(0) -- cgit v1.2.3