From 5957e968d7f7ab0973537ef9a1d93b94c587fdc9 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 4 Apr 2006 17:50:14 +0000 Subject: [PATCH] do not tb on kind gc_msg --- src/history_manager.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/history_manager.py b/src/history_manager.py index 047c62914..d76e042e4 100755 --- a/src/history_manager.py +++ b/src/history_manager.py @@ -273,6 +273,7 @@ class HistoryManager: except ValueError: pass else: + set_color = True if kind in (constants.KIND_SINGLE_MSG_RECV, constants.KIND_CHAT_MSG_RECV): # it is the other side color = gajim.config.get('inmsgcolor') # so incoming color @@ -282,9 +283,14 @@ class HistoryManager: elif kind in (constants.KIND_STATUS, constants.KIND_GCSTATUS): # is is statuses color = gajim.config.get('statusmsgcolor') # so status color - - message = '%s' % (color, - gtkgui_helpers.escape_for_pango_markup(row[4])) + else: # GC_MSG (message in room) + set_color = False + + if set_color: + message = '%s' % (color, + gtkgui_helpers.escape_for_pango_markup(row[4])) + else: + message = row[4] self.logs_liststore.append((row[0], row[1], time_, message, row[5])) def _fill_search_results_listview(self, text):