1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 19:42:11 +02:00

Get rid of jid:to_string/1 and jid:from_string/1

This commit is contained in:
Evgeniy Khramtsov 2017-02-26 10:07:12 +03:00
parent 603ec9cb19
commit c1439ddd5b
55 changed files with 301 additions and 294 deletions

View file

@ -123,7 +123,7 @@ get_group_explicit_users(Host, Group) ->
{selected, Rs} ->
lists:map(
fun({JID}) ->
{U, S, _} = jid:tolower(jid:from_string(JID)),
{U, S, _} = jid:tolower(jid:decode(JID)),
{U, S}
end, Rs);
_ ->
@ -198,6 +198,6 @@ import(_, _, _) ->
%%% Internal functions
%%%===================================================================
make_jid_s(U, S) ->
jid:to_string(jid:tolower(jid:make(U, S))).
jid:encode(jid:tolower(jid:make(U, S))).
make_jid_s({U, S}) -> make_jid_s(U, S).