Add hook on api call

This commit is contained in:
Christophe Romain 2018-12-11 11:07:07 +01:00
parent 38726a5510
commit f6a557ec86
1 changed files with 1 additions and 0 deletions

View File

@ -492,6 +492,7 @@ do_execute_command(Command, Arguments) ->
Module = Command#ejabberd_commands.module,
Function = Command#ejabberd_commands.function,
?DEBUG("Executing command ~p:~p with Args=~p", [Module, Function, Arguments]),
ejabberd_hooks:run(api_call, [Module, Function, Arguments]),
apply(Module, Function, Arguments).
-spec get_tags_commands() -> [{string(), [string()]}].