diff options
author | lovetox <philipp@hoerist.com> | 2020-04-19 08:00:25 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-04-19 08:00:25 +0300 |
commit | 197813d79753f318714a6c28eedec2d56fba59c8 (patch) | |
tree | f9c88ba6f0f3ff4f1b01a3f3df9384753e7b8261 /nbxmpp | |
parent | df300ddd981d421023472a484fc783854be7f6d0 (diff) |
EntityCaps: Answer DiscoInfo if there is no node set
Diffstat (limited to 'nbxmpp')
-rw-r--r-- | nbxmpp/modules/entity_caps.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nbxmpp/modules/entity_caps.py b/nbxmpp/modules/entity_caps.py index 4599522..05479b2 100644 --- a/nbxmpp/modules/entity_caps.py +++ b/nbxmpp/modules/entity_caps.py @@ -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) |