mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Fix caching for clients.
This commit is contained in:
parent
d979b5f2b9
commit
5ef0b96d5c
1 changed files with 5 additions and 1 deletions
|
@ -644,10 +644,14 @@ class xep_0030(base_plugin):
|
||||||
if self.use_cache:
|
if self.use_cache:
|
||||||
log.debug("Caching disco info result from " \
|
log.debug("Caching disco info result from " \
|
||||||
"<%s> to <%s>.", iq['from'], iq['to'])
|
"<%s> to <%s>.", iq['from'], iq['to'])
|
||||||
|
if self.xmpp.is_component:
|
||||||
|
ito = iq['to'].full
|
||||||
|
else:
|
||||||
|
ito = None
|
||||||
self._run_node_handler('cache_info',
|
self._run_node_handler('cache_info',
|
||||||
iq['from'].full,
|
iq['from'].full,
|
||||||
iq['disco_info']['node'],
|
iq['disco_info']['node'],
|
||||||
iq['to'].full,
|
ito,
|
||||||
iq)
|
iq)
|
||||||
self.xmpp.event('disco_info', iq)
|
self.xmpp.event('disco_info', iq)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue