From a9abed615188bff2da7cf7865e07fe1aefa24b61 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 7 Aug 2018 21:30:13 +0200 Subject: [PATCH] xep-0054: XMPP clients should not reply to vcard "get" requests --- slixmpp/plugins/xep_0054/vcard_temp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()