[jim++] fix logic for ft popup. fixes #1393
This commit is contained in:
parent
5ce9bf3f49
commit
1f43ebfeb3
|
@ -308,7 +308,7 @@ def get_name_from_jid(account, jid):
|
||||||
def popup_window(account):
|
def popup_window(account):
|
||||||
autopopup = config.get('autopopup')
|
autopopup = config.get('autopopup')
|
||||||
autopopupaway = config.get('autopopupaway')
|
autopopupaway = config.get('autopopupaway')
|
||||||
if autopopup and (autopopupaway or connections[account].connected > 3):
|
if autopopup and (autopopupaway or connections[account].connected in (2, 3)):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue