Ensure that wrapped disco results retain requesting iq id.
This commit is contained in:
parent
af099737ab
commit
f9d0ee824b
@ -333,8 +333,10 @@ class XEP_0030(BasePlugin):
|
|||||||
if str(jid) == str(self.xmpp.boundjid):
|
if str(jid) == str(self.xmpp.boundjid):
|
||||||
local = True
|
local = True
|
||||||
jid = jid.full
|
jid = jid.full
|
||||||
|
elif jid in (None, ''):
|
||||||
|
local = True
|
||||||
|
|
||||||
if local or jid in (None, ''):
|
if local:
|
||||||
log.debug("Looking up local disco#info data " + \
|
log.debug("Looking up local disco#info data " + \
|
||||||
"for %s, node %s.", jid, node)
|
"for %s, node %s.", jid, node)
|
||||||
info = self.api['get_info'](jid, node,
|
info = self.api['get_info'](jid, node,
|
||||||
@ -629,6 +631,7 @@ class XEP_0030(BasePlugin):
|
|||||||
iq['from'],
|
iq['from'],
|
||||||
iq)
|
iq)
|
||||||
if isinstance(info, Iq):
|
if isinstance(info, Iq):
|
||||||
|
info['id'] = iq['id']
|
||||||
info.send()
|
info.send()
|
||||||
else:
|
else:
|
||||||
iq.reply()
|
iq.reply()
|
||||||
|
Loading…
Reference in New Issue
Block a user