25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Sanitize copy-pasted get_statustag/1

This commit is contained in:
Radosław Szymczyszyn 2014-05-20 12:27:16 +01:00
parent 9c37450fe4
commit b7a542e074

View File

@ -2358,11 +2358,7 @@ get_showtag(Presence) ->
get_statustag(undefined) -> <<"">>;
get_statustag(Presence) ->
case xml:get_path_s(Presence,
[{elem, <<"status">>}, cdata])
of
ShowTag -> ShowTag
end.
xml:get_path_s(Presence, [{elem, <<"status">>}, cdata]).
process_unauthenticated_stanza(StateData, El) ->
NewEl = case xml:get_tag_attr_s(<<"xml:lang">>, El) of