change status message in status combobox and in systray now concern only accounts that have sync_with_global_status True

This commit is contained in:
Yann Leboulanger 2005-10-10 19:10:59 +00:00
parent 9fb9a453eb
commit 7dffeb86df
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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)