DiscoveryWindow: Add default identity

Fixes #9386
This commit is contained in:
Philipp Hörist 2018-10-19 17:52:00 +02:00
parent f51c6f6b18
commit b9e02f200c
1 changed files with 4 additions and 0 deletions

View File

@ -405,6 +405,10 @@ class ServicesCache:
Callback for when we receive an agent's info Callback for when we receive an agent's info
array is (agent, node, identities, features, data) array is (agent, node, identities, features, data)
""" """
if not identities:
# Ejabberd doesn't send identities when using admin nodes
identities = [{'category': 'server', 'type': 'im', 'name': node}]
self._on_agent_info(str(from_), node, identities, features, data) self._on_agent_info(str(from_), node, identities, features, data)
def _disco_info_error(self, from_, error): def _disco_info_error(self, from_, error):