summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-04-13 18:07:25 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-04-13 18:07:58 +0200
commit5cc714a3275a476cbafff743e15ebfceaff5e957 (patch)
tree900376344a9853b72bb9ba6e9816cb7d1210b757 /src
parent91fde24388c97d5f74b1b68d5ada7f69725ab964 (diff)
downloadpoezio-5cc714a3275a476cbafff743e15ebfceaff5e957.tar.gz
poezio-5cc714a3275a476cbafff743e15ebfceaff5e957.tar.bz2
poezio-5cc714a3275a476cbafff743e15ebfceaff5e957.tar.xz
poezio-5cc714a3275a476cbafff743e15ebfceaff5e957.zip
“Disconnected from server” message is now an error only if we didn't ask for it
Diffstat (limited to 'src')
-rw-r--r--src/core/handlers.py3
1 files changed, 2 insertions, 1 deletions
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()