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:
parent
9c37450fe4
commit
b7a542e074
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user