don't send music changement if we're not correctly connected

This commit is contained in:
Yann Leboulanger 2007-09-05 15:45:20 +00:00
parent 49b7eef9da
commit e4a2ee3cca
1 changed files with 3 additions and 1 deletions

View File

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