From 5cc714a3275a476cbafff743e15ebfceaff5e957 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Mon, 13 Apr 2015 18:07:25 +0200 Subject: =?UTF-8?q?=E2=80=9CDisconnected=20from=20server=E2=80=9D=20messag?= =?UTF-8?q?e=20is=20now=20an=20error=20only=20if=20we=20didn't=20ask=20for?= =?UTF-8?q?=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/handlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/handlers.py b/src/core/handlers.py index 3a5e9ea1..7a05c221 100644 --- a/src/core/handlers.py +++ b/src/core/handlers.py @@ -923,7 +923,8 @@ def on_disconnected(self, event): roster.modified() for tab in self.get_tabs(tabs.MucTab): tab.disconnect() - self.information(_("Disconnected from server."), _('Error')) + msg_typ = _('Error') if not self.legitimate_disconnect else _('Info') + self.information(_("Disconnected from server."), msg_typ) if not self.legitimate_disconnect and config.get('auto_reconnect', True): self.information(_("Auto-reconnecting."), _('Info')) self.xmpp.connect() -- cgit v1.2.3