From 9c2e974bfb85ffbc77d3db582be2379867b1893d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 5 Jan 2006 19:59:06 +0000 Subject: [PATCH] get_first_contact_from_jid doesn't return a GC_Contact instance --- src/common/contacts.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/common/contacts.py b/src/common/contacts.py index 66dc4587d..bbe458e5b 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -182,11 +182,6 @@ class Contacts: def get_first_contact_from_jid(self, account, jid): if jid in self._contacts[account]: return self._contacts[account][jid][0] - else: # it's fake jid - room, nick = common.gajim.get_room_and_nick_from_fjid(jid) - if self._gc_contacts[account].has_key(room) and \ - nick in self._gc_contacts[account][room]: - return self._gc_contacts[account][room][nick] return None def get_parent_contact(self, account, contact):