diff options
author | mathieui <mathieui@mathieui.net> | 2022-09-09 16:06:38 +0000 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2022-09-09 16:06:38 +0000 |
commit | cba5dc7ddc88c110e516d2d40679367f56865196 (patch) | |
tree | 0bf05f0de4d65d92bfbbe329e96761ad613e30e7 | |
parent | b3a6c7a4ea5af197136dd8a6a0e6013aeb50e8f6 (diff) | |
parent | b14918808c4a1127ccd72a79f98a0cdb2d550d2b (diff) | |
download | slixmpp-cba5dc7ddc88c110e516d2d40679367f56865196.tar.gz slixmpp-cba5dc7ddc88c110e516d2d40679367f56865196.tar.bz2 slixmpp-cba5dc7ddc88c110e516d2d40679367f56865196.tar.xz slixmpp-cba5dc7ddc88c110e516d2d40679367f56865196.zip |
Merge branch 'component-ifrom' into 'master'
xep_0030: fix ifrom for disco queries sent by components
See merge request poezio/slixmpp!216
-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) |