summaryrefslogtreecommitdiff
path: root/sleekxmpp/features
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-03-28 12:20:38 -0700
committerLance Stout <lancestout@gmail.com>2013-03-28 12:20:38 -0700
commit0a2737dc77709daa0196340368b7ffbfaf71f641 (patch)
tree087efc13f84b19e4c0b6820f7956eeac0fd3784c /sleekxmpp/features
parent8b73c2bcff14fbda4b2549f167047a7ca1187fa8 (diff)
parent481971928c972a96a114b6dcf6480e48b530d95b (diff)
downloadslixmpp-0a2737dc77709daa0196340368b7ffbfaf71f641.tar.gz
slixmpp-0a2737dc77709daa0196340368b7ffbfaf71f641.tar.bz2
slixmpp-0a2737dc77709daa0196340368b7ffbfaf71f641.tar.xz
slixmpp-0a2737dc77709daa0196340368b7ffbfaf71f641.zip
Merge pull request #228 from anton-ryzhov/events
Some events refactoring
Diffstat (limited to 'sleekxmpp/features')
-rw-r--r--sleekxmpp/features/feature_bind/bind.py2
-rw-r--r--sleekxmpp/features/feature_mechanisms/mechanisms.py1
-rw-r--r--sleekxmpp/features/feature_session/session.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/sleekxmpp/features/feature_bind/bind.py b/sleekxmpp/features/feature_bind/bind.py
index d2adc27b..bc145620 100644
--- a/sleekxmpp/features/feature_bind/bind.py
+++ b/sleekxmpp/features/feature_bind/bind.py
@@ -62,4 +62,4 @@ class FeatureBind(BasePlugin):
log.debug("Established Session")
self.xmpp.sessionstarted = True
self.xmpp.session_started_event.set()
- self.xmpp.event("session_start")
+ self.xmpp.event('session_start')
diff --git a/sleekxmpp/features/feature_mechanisms/mechanisms.py b/sleekxmpp/features/feature_mechanisms/mechanisms.py
index 81b997eb..58ed9b91 100644
--- a/sleekxmpp/features/feature_mechanisms/mechanisms.py
+++ b/sleekxmpp/features/feature_mechanisms/mechanisms.py
@@ -171,6 +171,7 @@ class FeatureMechanisms(BasePlugin):
except sasl.SASLNoAppropriateMechanism:
log.error("No appropriate login method.")
self.xmpp.event("no_auth", direct=True)
+ self.xmpp.event("failed_auth", direct=True)
self.attempted_mechs = set()
return self.xmpp.disconnect()
except StringPrepError:
diff --git a/sleekxmpp/features/feature_session/session.py b/sleekxmpp/features/feature_session/session.py
index c799a763..ceadd5f3 100644
--- a/sleekxmpp/features/feature_session/session.py
+++ b/sleekxmpp/features/feature_session/session.py
@@ -51,4 +51,4 @@ class FeatureSession(BasePlugin):
log.debug("Established Session")
self.xmpp.sessionstarted = True
self.xmpp.session_started_event.set()
- self.xmpp.event("session_start")
+ self.xmpp.event('session_start')