aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_commands.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2018-12-11 11:07:07 +0100
committerChristophe Romain <christophe.romain@process-one.net>2018-12-11 11:07:07 +0100
commitf6a557ec86b0a7cc07c480b65f3548467afaba74 (patch)
tree86c1c2511e9666b9d819f5096246ccaad740c8b8 /src/ejabberd_commands.erl
parentIncrease MAX_PAYLOAD_SIZE for PubSub items (diff)
Add hook on api call
Diffstat (limited to 'src/ejabberd_commands.erl')
-rw-r--r--src/ejabberd_commands.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ejabberd_commands.erl b/src/ejabberd_commands.erl
index 56a1518e4..eb8c0443d 100644
--- a/src/ejabberd_commands.erl
+++ b/src/ejabberd_commands.erl
@@ -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()]}].