From e4a2ee3cca3a124a26d4c44d11c88f5f65ac60c0 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 5 Sep 2007 15:45:20 +0000 Subject: [PATCH] don't send music changement if we're not correctly connected --- src/roster_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index ea5d58094..46a3cab43 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -3699,7 +3699,9 @@ class RosterWindow: if not gajim.config.get_per('accounts', account, 'sync_with_global_status'): continue - if not gajim.connections[account].connected: + if gajim.connections[account].connected < gajim.SHOW_LIST.index( + 'online') or gajim.connections[account].connected > gajim.SHOW_LIST.\ + index('invisible'): continue current_show = gajim.SHOW_LIST[gajim.connections[account].connected] self.send_status(account, current_show, status_message)