From 7dffeb86df94f88e8f6349395d44ca3f99a2081c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 10 Oct 2005 19:10:59 +0000 Subject: [PATCH] change status message in status combobox and in systray now concern only accounts that have sync_with_global_status True --- src/roster_window.py | 3 +++ src/systray.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 4568a2e37..e7d586f51 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1424,6 +1424,9 @@ _('If "%s" accepts this request you will know his status.') %jid) message = dlg.run() if message is not None: # None if user pressed Cancel for acct in accounts: + if not gajim.config.get_per('accounts', acct, + 'sync_with_global_status'): + continue show = gajim.SHOW_LIST[gajim.connections[acct].connected] self.send_status(acct, show, message) return diff --git a/src/systray.py b/src/systray.py index beb0b1db2..b0b25ab84 100644 --- a/src/systray.py +++ b/src/systray.py @@ -318,6 +318,9 @@ class Systray: if message is not None: # None if user press Cancel accounts = gajim.connections.keys() for acct in accounts: + if not gajim.config.get_per('accounts', acct, + 'sync_with_global_status'): + continue show = gajim.SHOW_LIST[gajim.connections[acct].connected] self.plugin.roster.send_status(acct, show, message)