1
0
Fork 0
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:
Evgeniy Khramtsov 2017-12-11 09:46:26 +03:00
parent ae66c17ec0
commit bd064fa3fc
5 changed files with 24 additions and 6 deletions

View file

@ -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.