summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0153/vcard_avatar.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-07-26 11:55:54 -0700
committerLance Stout <lancestout@gmail.com>2012-07-26 11:55:54 -0700
commit35396d2977f9b19f6690b88a7c2f3c7f4f09356b (patch)
treee6e90a709aeab45cb64f2570c6821c718c014c65 /sleekxmpp/plugins/xep_0153/vcard_avatar.py
parent3bff743d9f564b2cdcc81ace31f2dac7ec829896 (diff)
downloadslixmpp-35396d2977f9b19f6690b88a7c2f3c7f4f09356b.tar.gz
slixmpp-35396d2977f9b19f6690b88a7c2f3c7f4f09356b.tar.bz2
slixmpp-35396d2977f9b19f6690b88a7c2f3c7f4f09356b.tar.xz
slixmpp-35396d2977f9b19f6690b88a7c2f3c7f4f09356b.zip
Don't include a 'from' JID when requesting vCards as a client.
Diffstat (limited to 'sleekxmpp/plugins/xep_0153/vcard_avatar.py')
-rw-r--r--sleekxmpp/plugins/xep_0153/vcard_avatar.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0153/vcard_avatar.py b/sleekxmpp/plugins/xep_0153/vcard_avatar.py
index d61bf571..da90fdc5 100644
--- a/sleekxmpp/plugins/xep_0153/vcard_avatar.py
+++ b/sleekxmpp/plugins/xep_0153/vcard_avatar.py
@@ -119,7 +119,8 @@ class XEP_0153(BasePlugin):
if data is None:
return
elif data == '' or data != self.api['get_hash'](pres['to']):
- self.api['reset_hash'](pres['from'], ifrom=pres['to'])
+ ifrom = pres['to'] if self.xmpp.is_component else None
+ self.api['reset_hash'](pres['from'], ifrom=ifrom)
self.xmpp.event('vcard_avatar_update', pres)
# =================================================================