diff options
author | Lance Stout <lancestout@gmail.com> | 2012-05-15 14:26:25 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-05-15 14:26:25 -0700 |
commit | 7842c55da3fa13b910a626f75bdde949dafb1b89 (patch) | |
tree | 72ccc06eaace00f1ab789b9e215526323e379d11 | |
parent | f5beac2afafeab1f1a788d1409b61834b124469c (diff) | |
download | slixmpp-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.
-rw-r--r-- | sleekxmpp/features/feature_mechanisms/mechanisms.py | 1 |
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): |