xep-0054: XMPP clients should not reply to vcard "get" requests
This commit is contained in:
parent
0f690d4005
commit
a9abed6151
@ -123,7 +123,7 @@ class XEP_0054(BasePlugin):
|
|||||||
if iq['type'] == 'result':
|
if iq['type'] == 'result':
|
||||||
self.api['set_vcard'](jid=iq['from'], args=iq['vcard_temp'])
|
self.api['set_vcard'](jid=iq['from'], args=iq['vcard_temp'])
|
||||||
return
|
return
|
||||||
elif iq['type'] == 'get':
|
elif iq['type'] == 'get' and self.xmpp.is_component:
|
||||||
vcard = self.api['get_vcard'](iq['from'].bare)
|
vcard = self.api['get_vcard'](iq['from'].bare)
|
||||||
if isinstance(vcard, Iq):
|
if isinstance(vcard, Iq):
|
||||||
vcard.send()
|
vcard.send()
|
||||||
|
Loading…
Reference in New Issue
Block a user