From 1c1ffd1611af1288983017905fc4e0ca31726189 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 30 Jun 2005 21:51:42 +0000 Subject: [PATCH] fixme: check if the contact is in not in the roster --- src/chat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat.py b/src/chat.py index b93c220eb..430ff3ef8 100644 --- a/src/chat.py +++ b/src/chat.py @@ -690,9 +690,9 @@ class Chat: childs[5].connect('activate', self.on_start_chat_activate, text) childs[6].connect('activate', self.on_join_group_chat_menuitem_activate, text) - if self.plugin.roster.contacts[self.account].has_key(text): -#and\#FIXME: check if it's in 'not in the roster' and then don't hide -#not self.plugin.roster.contacts[self.account][text].show == 'not in the roster': + u = self.plugin.roster.contacts[self.account][text][0] + if self.plugin.roster.contacts[self.account].has_key(text) and \ + 'not in the roster' not in u.groups: childs[7].hide() else: childs[7].connect('activate', self.on_add_to_roster_activate, text)