# HG changeset patch # User Goffi # Date 1496499166 -7200 # Node ID 0a93d71f9503f7df3131a96efa8ff0f67d547c1a # Parent 0fcd0ea89c8417b5a69b71804075c4e1c01355cf delegation: use same disco for all pubsub namespaces diff -r 0fcd0ea89c84 -r 0a93d71f9503 sat_pubsub/delegation.py --- a/sat_pubsub/delegation.py Sat Jun 03 15:31:07 2017 +0200 +++ b/sat_pubsub/delegation.py Sat Jun 03 16:12:46 2017 +0200 @@ -232,6 +232,11 @@ log.msg("No namespace found in node {}".format(nodeIdentifier)) return [] + if namespace.startswith(pubsub.NS_PUBSUB): + # pubsub use several namespaces starting with NS_PUBSUB (e.g. http://jabber.org/protocol/pubsub#owner) + # we return the same disco for all of them + namespace = pubsub.NS_PUBSUB + def gotInfos(infos): ns_features = [] for info in infos: