summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-12-28 11:37:05 -0500
committerLance Stout <lancestout@gmail.com>2011-12-28 11:37:05 -0500
commit5ef0b96d5c038d70fd563c18d592a4637106879b (patch)
tree2ef4e397262cf8692189d655b8909578606b2d57 /sleekxmpp
parentd979b5f2b9cb38bdd145c95526358238449fa067 (diff)
downloadslixmpp-5ef0b96d5c038d70fd563c18d592a4637106879b.tar.gz
slixmpp-5ef0b96d5c038d70fd563c18d592a4637106879b.tar.bz2
slixmpp-5ef0b96d5c038d70fd563c18d592a4637106879b.tar.xz
slixmpp-5ef0b96d5c038d70fd563c18d592a4637106879b.zip
Fix caching for clients.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/plugins/xep_0030/disco.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0030/disco.py b/sleekxmpp/plugins/xep_0030/disco.py
index 503631ec..e1eec706 100644
--- a/sleekxmpp/plugins/xep_0030/disco.py
+++ b/sleekxmpp/plugins/xep_0030/disco.py
@@ -644,10 +644,14 @@ class xep_0030(base_plugin):
if self.use_cache:
log.debug("Caching disco info result from " \
"<%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',
iq['from'].full,
iq['disco_info']['node'],
- iq['to'].full,
+ ito,
iq)
self.xmpp.event('disco_info', iq)