From 16c8717a45cd0f3c9779ba60144de937b81117a2 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 20 Jun 2005 10:01:19 +0000 Subject: [PATCH] bugfix with /clear command --- src/groupchat_window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 6168a7b41..bd8cc6def 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -500,12 +500,14 @@ class GroupchatWindow(chat.Chat): room_jid = self.get_active_jid() message_textview = self.xmls[room_jid].get_widget( 'message_textview') + conversation_textview = self.xmls[room_jid].get_widget( + 'conversation_textview') message_buffer = message_textview.get_buffer() if message != '' or message != '\n': self.save_sent_message(room_jid, message) - if message == '/clear': + if message in ['/clear', '/clear ']: self.on_clear(None, conversation_textview) # clear conversation - self.on_clear(None, widget) # clear message textview too + self.on_clear(None, message_textview) # clear message textview too return elif message.startswith('/nick '):