summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0054
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-10-18 12:26:50 -0700
committerLance Stout <lancestout@gmail.com>2012-10-18 12:26:50 -0700
commitaf9632519c93110ce04823665404d3c70baabab2 (patch)
tree69aabf158429c1f8ff371de5deac3129035326a2 /sleekxmpp/plugins/xep_0054
parentd367fb938d80aa2398ac36a3ae8e8c580eb37ffc (diff)
downloadslixmpp-af9632519c93110ce04823665404d3c70baabab2.tar.gz
slixmpp-af9632519c93110ce04823665404d3c70baabab2.tar.bz2
slixmpp-af9632519c93110ce04823665404d3c70baabab2.tar.xz
slixmpp-af9632519c93110ce04823665404d3c70baabab2.zip
Always cache published vcard
Diffstat (limited to 'sleekxmpp/plugins/xep_0054')
-rw-r--r--sleekxmpp/plugins/xep_0054/vcard_temp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0054/vcard_temp.py b/sleekxmpp/plugins/xep_0054/vcard_temp.py
index 83cbccf8..24da1c05 100644
--- a/sleekxmpp/plugins/xep_0054/vcard_temp.py
+++ b/sleekxmpp/plugins/xep_0054/vcard_temp.py
@@ -97,8 +97,8 @@ class XEP_0054(BasePlugin):
def publish_vcard(self, vcard=None, jid=None, block=True, ifrom=None,
callback=None, timeout=None):
+ self.api['set_vcard'](jid, None, ifrom, vcard)
if self.xmpp.is_component:
- self.api['set_vcard'](jid, None, ifrom, vcard)
return
iq = self.xmpp.Iq()