check on jid and not on name for agent protocol (thanks mikea)

This commit is contained in:
Nikos Kouremenos 2005-04-29 14:11:05 +00:00
parent fbdae750c2
commit 8bb18de5e4
1 changed files with 5 additions and 5 deletions

View File

@ -213,15 +213,15 @@ class Roster_window:
state_images = self.get_appropriate_state_images(jid)
if jid.find('@') == -1: # if not '@' it's an agent
if name.find('aim.') != -1:
if jid.find('aim.') != -1:
state_images = self.transports_state_images['aim']
elif name.find('gadugadu.') != -1:
elif jid.find('gadugadu.') != -1:
state_images = self.transports_state_images['gadugadu']
elif name.find('icq.') != -1:
elif jid.find('icq.') != -1:
state_images = self.transports_state_images['icq']
elif name.find('msn.') != -1:
elif jid.find('msn.') != -1:
state_images = self.transports_state_images['msn']
elif name.find('yahoo.') != -1:
elif jid.find('yahoo.') != -1:
state_images = self.transports_state_images['yahoo']
img = state_images[user.show]