diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2017-04-11 12:13:58 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2017-04-11 12:13:58 +0200 |
commit | b1acd1183f1ce176a4703528d7d25b9dd3ee89f4 (patch) | |
tree | 9339705c26123538d94ad1fc62011b02517e6e98 /src/mod_configure.erl | |
parent | Use p1_utils 1.0.8 (diff) |
Rename aux.erl as misc.erl
Thanks Microsoft Windows to not support some filenames
Diffstat (limited to 'src/mod_configure.erl')
-rw-r--r-- | src/mod_configure.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mod_configure.erl b/src/mod_configure.erl index ad7cadc7..b9db1e51 100644 --- a/src/mod_configure.erl +++ b/src/mod_configure.erl @@ -919,7 +919,7 @@ get_form(Host, ENode/binary>>, Instr = ?T(Lang, <<"Choose modules to stop">>), Fs = lists:map(fun(M) -> - S = aux:atom_to_binary(M), + S = misc:atom_to_binary(M), ?XFIELD(boolean, S, S, <<"0">>) end, SModules), {result, #xdata{title = Title, @@ -1224,7 +1224,7 @@ set_form(_From, _Host, Node -> lists:foreach( fun(#xdata_field{var = SVar, values = SVals}) -> - Table = aux:binary_to_atom(SVar), + Table = misc:binary_to_atom(SVar), Type = case SVals of [<<"unknown">>] -> unknown; [<<"ram_copies">>] -> ram_copies; @@ -1258,7 +1258,7 @@ set_form(_From, Host, fun(#xdata_field{var = Var, values = Vals}) -> case Vals of [<<"1">>] -> - Module = aux:binary_to_atom(Var), + Module = misc:binary_to_atom(Var), ejabberd_cluster:call(Node, gen_mod, stop_module, [Host, Module]); _ -> ok @@ -1657,7 +1657,7 @@ set_form(From, Host, ?NS_ADMINL(<<"user-stats">>), Lang, Server), IPs1 = [ejabberd_sm:get_user_ip(User, Server, Resource) || Resource <- Resources], - IPs = [<<(aux:ip_to_list(IP))/binary, ":", + IPs = [<<(misc:ip_to_list(IP))/binary, ":", (integer_to_binary(Port))/binary>> || {IP, Port} <- IPs1], Items = ejabberd_hooks:run_fold(roster_get, Server, [], @@ -1719,7 +1719,7 @@ stop_node(From, Host, ENode, Action, XData) -> mod_announce:announce_commands(empty, From, To, Request) end, Time = timer:seconds(Delay), - Node = aux:binary_to_atom(ENode), + Node = misc:binary_to_atom(ENode), {ok, _} = timer:apply_after(Time, rpc, call, [Node, init, Action, []]), {result, undefined}. |