Commit 3b8fd415 authored by Philipp Hörist's avatar Philipp Hörist

DiscoInfo: Only handle type get

parent 5303bb12
Pipeline #5557 passed with stages
in 34 seconds
......@@ -47,6 +47,7 @@ class Discovery(BaseModule):
self.handlers = [
StanzaHandler(name='iq',
callback=self._process_disco_info,
typ='get',
ns=Namespace.DISCO_INFO,
priority=90),
]
......
......@@ -36,6 +36,7 @@ class EntityCaps(BaseModule):
priority=15),
StanzaHandler(name='iq',
callback=self._process_disco_info,
typ='get',
ns=Namespace.DISCO_INFO,
priority=20),
]
......@@ -68,7 +69,7 @@ class EntityCaps(BaseModule):
for feature in self._caps.features:
query.addChild('feature', attrs={'var': feature})
self._log.info('Respond with entity caps')
self._log.info('Respond with disco info')
client.send_stanza(iq)
raise NodeProcessed
......
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