Don't clobber SASL config when specifying sasl_mech in ClientXMPP constructor.

This commit is contained in:
Lance Stout 2012-11-09 09:57:20 -08:00
parent 0fea4262ea
commit 7a1ed64985

View file

@ -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):