Display disconnect reason, depends on slixmpp!12

This commit is contained in:
Georg Lukas 2019-03-26 11:31:51 +01:00
parent f51d495198
commit 910240afb6

View file

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