From 7a1ed64985a7cbfe48e834838d30e202f1c692e4 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 9 Nov 2012 09:57:20 -0800 Subject: [PATCH] Don't clobber SASL config when specifying sasl_mech in ClientXMPP constructor. --- sleekxmpp/clientxmpp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index 3fa158af..ae3803ef 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -114,8 +114,10 @@ class ClientXMPP(BaseXMPP): self.register_plugin('feature_session') self.register_plugin('feature_rosterver') self.register_plugin('feature_preapproval') - self.register_plugin('feature_mechanisms', - pconfig={'use_mech': sasl_mech} if sasl_mech else None) + self.register_plugin('feature_mechanisms') + + if sasl_mech: + self['feature_mechanisms'].use_mech = sasl_mech @property def password(self):