Commit ac3f42d4 authored by Philipp Hörist's avatar Philipp Hörist

EntityCaps: Correctly handle disco info without node attribute

parent e8d421fe
Pipeline #5480 passed with stages
in 1 minute
......@@ -52,12 +52,15 @@ class EntityCaps(BaseModule):
if self._caps is None:
return
if self._node is not None:
if self._node != stanza.getQuerynode():
node = stanza.getQuerynode()
if node is not None:
if self._node != node:
return
iq = stanza.buildReply('result')
iq.setQuerynode(self._node)
if node is not None:
iq.setQuerynode(node)
query = iq.getQuery()
for identity in self._caps.identities:
query.addChild(node=identity.get_node())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment