diff options
author | nicoco <nicoco@nicoco.fr> | 2022-08-29 00:03:55 +0200 |
---|---|---|
committer | nicoco <nicoco@nicoco.fr> | 2022-08-29 00:03:55 +0200 |
commit | b14918808c4a1127ccd72a79f98a0cdb2d550d2b (patch) | |
tree | a472d77e285f8facc9cdf2b29e8a8c688e2c8116 | |
parent | f5cb9fe66b010793e087c8b27176b1d227dd4ba2 (diff) | |
download | slixmpp-b14918808c4a1127ccd72a79f98a0cdb2d550d2b.tar.gz slixmpp-b14918808c4a1127ccd72a79f98a0cdb2d550d2b.tar.bz2 slixmpp-b14918808c4a1127ccd72a79f98a0cdb2d550d2b.tar.xz slixmpp-b14918808c4a1127ccd72a79f98a0cdb2d550d2b.zip |
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.
-rw-r--r-- | slixmpp/plugins/xep_0030/disco.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |