send new status when song changes only to connect accounts that have sync with global status on.

This commit is contained in:
Yann Leboulanger 2006-09-26 14:16:19 +00:00
parent 8d8b92c344
commit 1f489b0b97
1 changed files with 5 additions and 0 deletions

View File

@ -2412,6 +2412,11 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
{'title': music_track_info.title,
'artist': music_track_info.artist }
for acct in accounts:
if not gajim.config.get_per('accounts', acct,
'sync_with_global_status'):
continue
if not gajim.connections[acct].connected:
continue
current_show = gajim.SHOW_LIST[gajim.connections[acct].connected]
self.send_status(acct, current_show, status_message)