25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix problem with --auth in ejabberd_ctl:process2/2

This commit is contained in:
Paweł Chmielowski 2015-10-01 21:09:03 +02:00
parent 67d3b50598
commit 24fa95fd60

View File

@ -209,7 +209,7 @@ process(Args) ->
%% @spec (Args::[string()], AccessCommands) -> {String::string(), Code::integer()} %% @spec (Args::[string()], AccessCommands) -> {String::string(), Code::integer()}
process2(["--auth", User, Server, Pass | Args], AccessCommands) -> process2(["--auth", User, Server, Pass | Args], AccessCommands) ->
process2(Args, {list_to_binary(User), list_to_binary(Server), list_to_binary(Pass)}, AccessCommands); process2(Args, {list_to_binary(User), list_to_binary(Server), list_to_binary(Pass), true}, AccessCommands);
process2(Args, AccessCommands) -> process2(Args, AccessCommands) ->
process2(Args, admin, AccessCommands). process2(Args, admin, AccessCommands).