summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-08-07 21:30:13 +0200
committermathieui <mathieui@mathieui.net>2018-08-07 21:30:13 +0200
commita9abed615188bff2da7cf7865e07fe1aefa24b61 (patch)
tree6463aaa7a45a7b02ef7743114f2a7e7b8091588b
parent0f690d400586829e9ee7bee69dc19ffe09ff9f58 (diff)
downloadslixmpp-a9abed615188bff2da7cf7865e07fe1aefa24b61.tar.gz
slixmpp-a9abed615188bff2da7cf7865e07fe1aefa24b61.tar.bz2
slixmpp-a9abed615188bff2da7cf7865e07fe1aefa24b61.tar.xz
slixmpp-a9abed615188bff2da7cf7865e07fe1aefa24b61.zip
xep-0054: XMPP clients should not reply to vcard "get" requests
-rw-r--r--slixmpp/plugins/xep_0054/vcard_temp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0054/vcard_temp.py b/slixmpp/plugins/xep_0054/vcard_temp.py
index 098b0e34..214746e9 100644
--- a/slixmpp/plugins/xep_0054/vcard_temp.py
+++ b/slixmpp/plugins/xep_0054/vcard_temp.py
@@ -123,7 +123,7 @@ class XEP_0054(BasePlugin):
if iq['type'] == 'result':
self.api['set_vcard'](jid=iq['from'], args=iq['vcard_temp'])
return
- elif iq['type'] == 'get':
+ elif iq['type'] == 'get' and self.xmpp.is_component:
vcard = self.api['get_vcard'](iq['from'].bare)
if isinstance(vcard, Iq):
vcard.send()