Update legacy auth to be used outside of stream features.

Also, add detection of legacy XMPP version.
This commit is contained in:
Lance Stout
2012-10-01 16:27:55 -07:00
parent 94488fa2ea
commit 657102e938
3 changed files with 21 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ class FeatureMechanisms(BasePlugin):
}
def plugin_init(self):
if not self.use_mech and not self.xmpp.boundjid.user:
if not self.use_mech and not self.xmpp.requested_jid.user:
self.use_mech = 'ANONYMOUS'
if self.sasl_callback is None: