From 910240afb6d2c180d0d6a4207a08d6b5a4c2f64b Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Tue, 26 Mar 2019 11:31:51 +0100 Subject: Display disconnect reason, depends on slixmpp!12 --- poezio/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 030a43e5..9cb9358e 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -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 -- cgit v1.2.3