This commit is contained in:
Yann Leboulanger 2005-11-12 21:06:26 +00:00
parent de7b906254
commit 380bce1160
1 changed files with 2 additions and 2 deletions

View File

@ -533,9 +533,9 @@ def get_global_show():
maxi = connected
return gajim.SHOW_LIST[maxi]
def get_icon_name_to_show(contact, account):
def get_icon_name_to_show(contact, account = None):
'''Get the icon name to show in online, away, requested, ...'''
if gajim.awaiting_events[account].has_key(contact.jid):
if account and gajim.awaiting_events[account].has_key(contact.jid):
#FIXME: change icon for FT
return 'message'
if contact.jid.find('@') <= 0: # if not '@' or '@' starts the jid ==> agent