From 35396d2977f9b19f6690b88a7c2f3c7f4f09356b Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 26 Jul 2012 11:55:54 -0700 Subject: Don't include a 'from' JID when requesting vCards as a client. --- sleekxmpp/plugins/xep_0153/vcard_avatar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) # ================================================================= -- cgit v1.2.3