Add method to unregister stream features.
This commit is contained in:
parent
99701c947e
commit
46f49c7a12
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue