summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-07-10 01:35:25 -0700
committerLance Stout <lancestout@gmail.com>2012-07-10 01:35:25 -0700
commit46f49c7a12c3e00bb6e6b38e5e3aba5394aea931 (patch)
treebc8305b2a290f5a41d5672530acce2689af1dee5
parent99701c947e4cf969c5c7a226cdfd56eaf4f0e0d4 (diff)
downloadslixmpp-46f49c7a12c3e00bb6e6b38e5e3aba5394aea931.tar.gz
slixmpp-46f49c7a12c3e00bb6e6b38e5e3aba5394aea931.tar.bz2
slixmpp-46f49c7a12c3e00bb6e6b38e5e3aba5394aea931.tar.xz
slixmpp-46f49c7a12c3e00bb6e6b38e5e3aba5394aea931.zip
Add method to unregister stream features.
-rw-r--r--sleekxmpp/clientxmpp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py
index 03070b06..48637dad 100644
--- a/sleekxmpp/clientxmpp.py
+++ b/sleekxmpp/clientxmpp.py
@@ -173,6 +173,12 @@ class ClientXMPP(BaseXMPP):
self._stream_feature_order.append((order, name))
self._stream_feature_order.sort()
+ def unregister_feature(self, name, order):
+ if name in self._stream_feature_handlers:
+ del self._stream_feature_handlers[name]
+ self._stream_feature_order.remove((order, name))
+ self._stream_feature_order.sort()
+
def update_roster(self, jid, name=None, subscription=None, groups=[],
block=True, timeout=None, callback=None):
"""Add or change a roster item.