[jim] fix logic bug

This commit is contained in:
Nikos Kouremenos 2006-03-27 23:15:19 +00:00
parent d1bb5cbc74
commit 0190ac90a4
1 changed files with 5 additions and 6 deletions

View File

@ -720,12 +720,11 @@ def sanitize_filename(filename):
def allow_showing_notification(account):
'''is it allowed to show nofication?'''
if gajim.config.get('notify_on_new_message'):
# check OUR status and if we allow notifications for that status
if gajim.config.get('autopopupaway'): # always show notification
return True
if gajim.connections[account].connected in (2, 3): # we're online or chat
return True
# check OUR status and if we allow notifications for that status
if gajim.config.get('autopopupaway'): # always show notification
return True
if gajim.connections[account].connected in (2, 3): # we're online or chat
return True
return False
def allow_popup_window(account):