mirror of
https://github.com/processone/ejabberd
synced 2025-10-04 02:09:33 +02:00
Fix commands api option
This commit is contained in:
parent
f289e27cdf
commit
f13dc94801
1 changed files with 2 additions and 2 deletions
|
@ -592,7 +592,7 @@ get_commands() ->
|
||||||
UserCmds = [N || {N, _, _, user} <- CommandsList],
|
UserCmds = [N || {N, _, _, user} <- CommandsList],
|
||||||
Cmds =
|
Cmds =
|
||||||
lists:foldl(
|
lists:foldl(
|
||||||
fun({add_commands, L}, Acc) ->
|
fun([{add_commands, L}], Acc) ->
|
||||||
Cmds = case L of
|
Cmds = case L of
|
||||||
open -> OpenCmds;
|
open -> OpenCmds;
|
||||||
restricted -> RestrictedCmds;
|
restricted -> RestrictedCmds;
|
||||||
|
@ -601,7 +601,7 @@ get_commands() ->
|
||||||
_ when is_list(L) -> L
|
_ when is_list(L) -> L
|
||||||
end,
|
end,
|
||||||
lists:usort(Cmds ++ Acc);
|
lists:usort(Cmds ++ Acc);
|
||||||
({remove_commands, L}, Acc) ->
|
([{remove_commands, L}], Acc) ->
|
||||||
Cmds = case L of
|
Cmds = case L of
|
||||||
open -> OpenCmds;
|
open -> OpenCmds;
|
||||||
restricted -> RestrictedCmds;
|
restricted -> RestrictedCmds;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue