xep-0054: XMPP clients should not reply to vcard "get" requests
This commit is contained in:
parent
0f690d4005
commit
a9abed6151
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue