mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 02:29:34 +02:00
Use xmpp:try_subtag/2 wherever possible
This commit is contained in:
parent
ae66c17ec0
commit
bd064fa3fc
5 changed files with 24 additions and 6 deletions
|
@ -402,7 +402,7 @@ strip_addresses_element(Packet) ->
|
|||
#addresses{list = Addrs} ->
|
||||
PacketStripped = xmpp:remove_subtag(Packet, #addresses{}),
|
||||
{ok, PacketStripped, Addrs};
|
||||
undefined ->
|
||||
false ->
|
||||
throw(eadsele)
|
||||
end.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue