plugin XEP-215: Use bare JID instead of raising an exception on full jid.
This commit is contained in:
parent
1613554018
commit
d2fd11df13
1 changed files with 1 additions and 3 deletions
|
|
@ -172,9 +172,7 @@ class XEP_0215:
|
|||
"""
|
||||
if entity is None:
|
||||
entity = client.server_jid
|
||||
|
||||
if entity.resource:
|
||||
raise exceptions.DataError("A bare jid was expected for target entity")
|
||||
entity = entity.userhostJID()
|
||||
|
||||
try:
|
||||
cached_services = client._xep_0215_services[entity]
|
||||
|
|
|
|||
Loading…
Reference in a new issue