summaryrefslogtreecommitdiff
path: root/sleekxmpp/features
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-05-15 14:26:25 -0700
committerLance Stout <lancestout@gmail.com>2012-05-15 14:26:25 -0700
commit7842c55da3fa13b910a626f75bdde949dafb1b89 (patch)
tree72ccc06eaace00f1ab789b9e215526323e379d11 /sleekxmpp/features
parentf5beac2afafeab1f1a788d1409b61834b124469c (diff)
downloadslixmpp-7842c55da3fa13b910a626f75bdde949dafb1b89.tar.gz
slixmpp-7842c55da3fa13b910a626f75bdde949dafb1b89.tar.bz2
slixmpp-7842c55da3fa13b910a626f75bdde949dafb1b89.tar.xz
slixmpp-7842c55da3fa13b910a626f75bdde949dafb1b89.zip
Add auth_success event.
The auth_success event is triggered upon successful SASL negotiation.
Diffstat (limited to 'sleekxmpp/features')
-rw-r--r--sleekxmpp/features/feature_mechanisms/mechanisms.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sleekxmpp/features/feature_mechanisms/mechanisms.py b/sleekxmpp/features/feature_mechanisms/mechanisms.py
index f47012a9..930aa8fe 100644
--- a/sleekxmpp/features/feature_mechanisms/mechanisms.py
+++ b/sleekxmpp/features/feature_mechanisms/mechanisms.py
@@ -159,6 +159,7 @@ class FeatureMechanisms(BasePlugin):
self.attempted_mechs = set()
self.xmpp.authenticated = True
self.xmpp.features.add('mechanisms')
+ self.xmpp.event('auth_success', stanza, direct=True)
raise RestartStream()
def _handle_fail(self, stanza):