plugin XEP-0060: add_managed_node now do strict matching by default:
`add_managed_node` now match node when they are exactly the same by default, but if the new `strict_match` argument is set to `False`, the old behaviour of matching all node which start with the given `node` argument is used. rel 475
This commit is contained in:
parent
ad409de6a5
commit
c21ac3af16
1 changed files with 37 additions and 19 deletions
|
|
@ -97,7 +97,7 @@ class PubsubHook(object):
|
|||
else:
|
||||
# first hook on this node
|
||||
self.host.plugins["XEP-0060"].add_managed_node(
|
||||
node, items_cb=self._items_received
|
||||
node, strict_match=False, items_cb=self._items_received
|
||||
)
|
||||
self.node_hooks[node] = 0
|
||||
log.info(_("node manager installed on {node}").format(node=node))
|
||||
|
|
|
|||
Loading…
Reference in a new issue