it's possible that we don't have the jid of a contact in gc

This commit is contained in:
Yann Leboulanger 2005-04-23 19:09:03 +00:00
parent 1c70652031
commit a3fb1bac82
1 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,8 @@ class Roster_window:
def get_appropriate_state_images(self, jid):
'''check jid and return the appropriate state images dict'''
if not jid: # we don't have the jid of the contact (in gc)
state_images = self.jabber_state_images
if jid.find('@aim.') != -1:
state_images = self.transports_state_images['aim']
elif jid.find('@gadugadu.') != -1: