Display disconnect reason, depends on slixmpp!12
This commit is contained in:
parent
f51d495198
commit
910240afb6
1 changed files with 1 additions and 1 deletions
|
@ -1165,7 +1165,7 @@ class HandlerCore:
|
|||
for tab in self.core.get_tabs(tabs.MucTab):
|
||||
tab.disconnect()
|
||||
msg_typ = 'Error' if not self.core.legitimate_disconnect else 'Info'
|
||||
self.core.information("Disconnected from server.", msg_typ)
|
||||
self.core.information("Disconnected from server%s." % (event and ": %s" % event or ""), msg_typ)
|
||||
if self.core.legitimate_disconnect or not config.get(
|
||||
'auto_reconnect', True):
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue