missing import

This commit is contained in:
Yann Leboulanger 2005-12-30 11:20:52 +00:00
parent 5c5594bb31
commit 6afd4791a1
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,8 @@
## GNU General Public License for more details.
##
import common.gajim
class Contact:
'''Information concerning each contact'''
def __init__(self, jid='', name='', groups=[], show='', status='', sub='',
@ -183,7 +185,7 @@ class Contacts:
if jid in self._contacts[account]:
return self._contacts[account][jid][0]
else: # it's fake jid
room, nick = gajim.get_room_and_nick_from_fjid(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]