From 0bd9e77fc9144dd3d905fad29e6ac1a4108b20c9 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 27 Mar 2006 22:42:42 +0000 Subject: [PATCH] fix logic. thanks Jim for report --- src/common/helpers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/helpers.py b/src/common/helpers.py index 39488948b..5ad9fc0ab 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -720,9 +720,9 @@ def sanitize_filename(filename): def allow_showing_notification(account): '''is it allowed to show nofication?''' - if config.get('notify_on_new_message'): + if gajim.config.get('notify_on_new_message'): # check OUR status and if we allow notifications for that status - if config.get('autopopupaway'): # always show notification + if gajim.config.get('autopopupaway'): # always show notification return True if connections[account].connected in (2, 3): # we're online or chat return True @@ -730,8 +730,8 @@ def allow_showing_notification(account): def allow_popup_window(account): '''is it allowed to popup windows?''' - autopopup = config.get('autopopup') - autopopupaway = config.get('autopopupaway') + autopopup = gajim.config.get('autopopup') + autopopupaway = gajim.config.get('autopopupaway') if autopopup and (autopopupaway or connections[account].connected in (2, 3)): return True return False