summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py
index 38b4f974..0d9c88a1 100644
--- a/src/core.py
+++ b/src/core.py
@@ -236,7 +236,8 @@ class Core(object):
# Add handlers
self.xmpp.add_event_handler('connected', self.on_connected)
self.xmpp.add_event_handler('disconnected', self.on_disconnected)
- self.xmpp.add_event_handler('no_auth', self.on_failed_auth)
+ self.xmpp.add_event_handler('failed_auth', self.on_failed_auth)
+ self.xmpp.add_event_handler('no_auth', self.on_no_auth)
self.xmpp.add_event_handler("session_start", self.on_session_start)
self.xmpp.add_event_handler("session_start", self.on_session_start_features)
self.xmpp.add_event_handler("groupchat_presence", self.on_groupchat_presence)
@@ -3553,7 +3554,13 @@ class Core(object):
"""
Authentication failed
"""
- self.information(_("Authentication failed."))
+ self.information(_("Authentication failed (bad credentials?)."))
+
+ def on_no_auth(self, event):
+ """
+ Authentication failed (no mech)
+ """
+ self.information(_("Authentication failed, no login method available."))
def on_connected(self, event):
"""