mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Add hook on api call
This commit is contained in:
parent
38726a5510
commit
f6a557ec86
@ -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()]}].
|
||||
|
Loading…
Reference in New Issue
Block a user