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:
Goffi 2026-02-23 13:07:59 +01:00
commit c21ac3af16

View file

@ -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))