Simplify SASL mech registration.

Moved SASL registration completely to the feature plugin, instead of
keeping a portion of it in ClientXMPP.
This commit is contained in:
Lance Stout
2011-07-02 21:57:50 -07:00
parent b0297af38d
commit fba235a801
5 changed files with 8 additions and 40 deletions

View File

@@ -51,7 +51,7 @@ class feature_mechanisms(base_plugin):
restart=True,
order=self.config.get('order', 100))
def register_mechanism(self, name, handler, priority=0):
def register(self, name, handler, priority=0):
"""
Register a handler for a SASL authentication mechanism.
@@ -70,7 +70,7 @@ class feature_mechanisms(base_plugin):
self._mechanism_priorities.append((priority, name))
self._mechanism_priorities.sort(reverse=True)
def remove_mechanism(self, name):
def remove(self, name):
"""
Remove support for a given SASL authentication mechanism.