From 16bc64e7cb3cfc93fcda1d533638f405c067059f Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 1 Mar 2006 21:32:49 +0000 Subject: [PATCH] [jim++] print status change iwth no status message when we log status changes. fixes #1635 --- src/history_window.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/history_window.py b/src/history_window.py index 6cd5514cf..d06127e6a 100644 --- a/src/history_window.py +++ b/src/history_window.py @@ -208,7 +208,8 @@ class HistoryWindow: def add_new_line(self, contact_name, tim, kind, show, message): '''add a new line in textbuffer''' - if not message: # None or '' + if not message and kind not in (constants.KIND_STATUS, + constants.KIND_GCSTATUS): return buf = self.history_buffer end_iter = buf.get_end_iter() @@ -236,7 +237,8 @@ class HistoryWindow: if kind == constants.KIND_GC_MSG: tag_name = 'incoming' - elif kind in (constants.KIND_SINGLE_MSG_RECV, constants.KIND_CHAT_MSG_RECV): + elif kind in (constants.KIND_SINGLE_MSG_RECV, + constants.KIND_CHAT_MSG_RECV): contact = gajim.contacts.get_first_contact_from_jid(self.account, self.jid) if contact: @@ -253,7 +255,8 @@ class HistoryWindow: else: contact_name = self.jid.split('@')[0] tag_name = 'incoming' - elif kind in (constants.KIND_SINGLE_MSG_SENT, constants.KIND_CHAT_MSG_SENT): + elif kind in (constants.KIND_SINGLE_MSG_SENT, + constants.KIND_CHAT_MSG_SENT): contact_name = gajim.nicks[self.account] tag_name = 'outgoing' elif kind == constants.KIND_GCSTATUS: