From b14918808c4a1127ccd72a79f98a0cdb2d550d2b Mon Sep 17 00:00:00 2001 From: nicoco Date: Mon, 29 Aug 2022 00:03:55 +0200 Subject: xep_0030: fix ifrom for disco queries sent by components xep_0030 automatically sends disco queries with ifrom=None Prosody's mod_component had a workaround to allow this non-standard behaviour, but it will change in a future release. --- slixmpp/plugins/xep_0030/disco.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'slixmpp/plugins') diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py index 37d453aa..1169a50e 100644 --- a/slixmpp/plugins/xep_0030/disco.py +++ b/slixmpp/plugins/xep_0030/disco.py @@ -385,6 +385,8 @@ class XEP_0030(BasePlugin): local = True ifrom = kwargs.pop('ifrom', None) + if self.xmpp.is_component and ifrom is None: + ifrom = self.xmpp.boundjid if local: log.debug("Looking up local disco#info data " "for %s, node %s.", jid, node) -- cgit v1.2.3