From 7842c55da3fa13b910a626f75bdde949dafb1b89 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 15 May 2012 14:26:25 -0700 Subject: Add auth_success event. The auth_success event is triggered upon successful SASL negotiation. --- sleekxmpp/features/feature_mechanisms/mechanisms.py | 1 + 1 file changed, 1 insertion(+) (limited to 'sleekxmpp/features/feature_mechanisms/mechanisms.py') 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): -- cgit v1.2.3