summaryrefslogtreecommitdiff
path: root/src/core/handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/handlers.py')
-rw-r--r--src/core/handlers.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index 648c3e4d..50dca216 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -859,6 +859,13 @@ def on_disconnected(self, event):
self.information(_("Auto-reconnecting."), _('Info'))
self.xmpp.connect()
+def on_stream_error(self, event):
+ """
+ When we receive a stream error
+ """
+ if event and event['text']:
+ self.information(_('Stream error: %s') % event['text'], _('Error'))
+
def on_failed_all_auth(self, event):
"""
Authentication failed