summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/feature_mechanisms
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-07-02 21:57:50 -0700
committerLance Stout <lancestout@gmail.com>2011-07-02 21:57:50 -0700
commitfba235a801a3a1c06d1769cdc944b72dce33f88a (patch)
tree905c3243cee4991b0fc81332809f34042a2031c6 /sleekxmpp/features/feature_mechanisms
parentb0297af38d6dcd9ebfdaa0131ea798c9fe2b8c63 (diff)
downloadslixmpp-fba235a801a3a1c06d1769cdc944b72dce33f88a.tar.gz
slixmpp-fba235a801a3a1c06d1769cdc944b72dce33f88a.tar.bz2
slixmpp-fba235a801a3a1c06d1769cdc944b72dce33f88a.tar.xz
slixmpp-fba235a801a3a1c06d1769cdc944b72dce33f88a.zip
Simplify SASL mech registration.
Moved SASL registration completely to the feature plugin, instead of keeping a portion of it in ClientXMPP.
Diffstat (limited to 'sleekxmpp/features/feature_mechanisms')
-rw-r--r--sleekxmpp/features/feature_mechanisms/mechanisms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/features/feature_mechanisms/mechanisms.py b/sleekxmpp/features/feature_mechanisms/mechanisms.py
index 3cdb1b0a..a8a046e4 100644
--- a/sleekxmpp/features/feature_mechanisms/mechanisms.py
+++ b/sleekxmpp/features/feature_mechanisms/mechanisms.py
@@ -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.