Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/xmpp_codec.erl6
-rw-r--r--tools/xmpp_codec.spec6
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/xmpp_codec.erl b/tools/xmpp_codec.erl
index 987eb7c41..3adceabc4 100644
--- a/tools/xmpp_codec.erl
+++ b/tools/xmpp_codec.erl
@@ -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.
diff --git a/tools/xmpp_codec.spec b/tools/xmpp_codec.spec
index 38508ce6c..8d087c8b6 100644
--- a/tools/xmpp_codec.spec
+++ b/tools/xmpp_codec.spec
@@ -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 ->