From 380bce11607163ed505dcada4b28b4d1c9007720 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 12 Nov 2005 21:06:26 +0000 Subject: [PATCH] fix TB --- src/common/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/helpers.py b/src/common/helpers.py index abdefef30..04d477df9 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -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