diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-30 14:17:13 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-30 14:17:13 +0300 |
commit | 7bcbea210800e67045a9a58448a2e695d073246b (patch) | |
tree | 338585281c0893ddb776313cc240ecc2d3853cef /src/mod_admin_extra.erl | |
parent | Merge pull request #1646 from weiss/custom-headers (diff) |
Deprecate jlib.erl in favor of aux.erl
Since the main goal of jlib.erl is lost, all auxiliary functions
are now moved to aux.erl, and the whole jlib.erl is now deprecated.
Diffstat (limited to 'src/mod_admin_extra.erl')
-rw-r--r-- | src/mod_admin_extra.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 94388296..f9fa71bc 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -673,7 +673,7 @@ get_cookie() -> atom_to_list(erlang:get_cookie()). restart_module(Host, Module) when is_binary(Module) -> - restart_module(Host, jlib:binary_to_atom(Module)); + restart_module(Host, aux:binary_to_atom(Module)); restart_module(Host, Module) when is_atom(Module) -> List = gen_mod:loaded_modules_with_opts(Host), case proplists:get_value(Module, List) of @@ -1031,8 +1031,8 @@ set_presence(User, Host, Resource, Type, Show, Status, Priority0) -> From = jid:make(User, Host, Resource), To = jid:make(User, Host), Presence = #presence{from = From, to = To, - type = jlib:binary_to_atom(Type), - show = jlib:binary_to_atom(Show), + type = aux:binary_to_atom(Type), + show = aux:binary_to_atom(Show), status = xmpp:mk_text(Status), priority = Priority}, Pid ! {route, Presence}, @@ -1317,7 +1317,7 @@ build_roster_item(U, S, {add, Nick, Subs, Group}) -> Groups = binary:split(Group,<<";">>, [global]), #roster_item{jid = jid:make(U, S), name = Nick, - subscription = jlib:binary_to_atom(Subs), + subscription = aux:binary_to_atom(Subs), groups = Groups}; build_roster_item(U, S, remove) -> #roster_item{jid = jid:make(U, S), subscription = remove}. @@ -1410,7 +1410,7 @@ srg_get_info(Group, Host) -> Os when is_list(Os) -> Os; error -> [] end, - [{jlib:atom_to_binary(Title), btl(Value)} || {Title, Value} <- Opts]. + [{aux:atom_to_binary(Title), btl(Value)} || {Title, Value} <- Opts]. btl([]) -> []; btl([B|L]) -> [btl(B)|btl(L)]; @@ -1443,7 +1443,7 @@ send_message(Type, From, To, Subject, Body) -> ejabberd_router:route(xmpp:set_from_to(Packet, FromJID, ToJID)). build_packet(Type, Subject, Body) -> - #message{type = jlib:binary_to_atom(Type), + #message{type = aux:binary_to_atom(Type), body = xmpp:mk_text(Body), subject = xmpp:mk_text(Subject)}. |