Commit 197813d7 authored by Philipp Hörist's avatar Philipp Hörist

EntityCaps: Answer DiscoInfo if there is no node set

parent df300ddd
Pipeline #5415 passed with stages
in 59 seconds
......@@ -53,8 +53,9 @@ class EntityCaps(BaseModule):
if self._caps is None:
return
if self._node != stanza.getQuerynode():
return
if self._node is not None:
if self._node != stanza.getQuerynode():
return
iq = stanza.buildReply('result')
iq.setQuerynode(self._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