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

Make JID related functions from jlib.erl deprecated

This commit is contained in:
Evgeniy Khramtsov 2015-11-24 20:24:43 +03:00
parent 95265dd3ad
commit 87fb5132be
4 changed files with 19 additions and 7 deletions

View file

@ -2533,15 +2533,15 @@ dec_bool(<<"true">>) -> true;
dec_bool(<<"1">>) -> true.
resourceprep(R) ->
case jlib:resourceprep(R) of
case jid:resourceprep(R) of
error -> erlang:error(badarg);
R1 -> R1
end.
enc_jid(J) -> jlib:jid_to_string(J).
enc_jid(J) -> jid:to_string(J).
dec_jid(Val) ->
case jlib:string_to_jid(Val) of
case jid:from_string(Val) of
error -> erlang:error(badarg);
J -> J
end.

View file

@ -2421,7 +2421,7 @@ enc_utc(Val) ->
jlib:now_to_utc_string(Val).
dec_jid(Val) ->
case jlib:string_to_jid(Val) of
case jid:from_string(Val) of
error ->
erlang:error(badarg);
J ->
@ -2429,10 +2429,10 @@ dec_jid(Val) ->
end.
enc_jid(J) ->
jlib:jid_to_string(J).
jid:to_string(J).
resourceprep(R) ->
case jlib:resourceprep(R) of
case jid:resourceprep(R) of
error ->
erlang:error(badarg);
R1 ->