Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ejabberd_hooks.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_hooks.erl b/src/ejabberd_hooks.erl
index 1f168a185..9851a241c 100644
--- a/src/ejabberd_hooks.erl
+++ b/src/ejabberd_hooks.erl
@@ -82,7 +82,7 @@ add(Hook, Host, Module, Function, Seq) ->
delete(Hook, Function, Seq) when is_function(Function) ->
delete(Hook, global, undefined, Function, Seq).
-delete(Hook, Host, Function, Seq) when is_function(Seq) ->
+delete(Hook, Host, Function, Seq) when is_function(Function) ->
delete(Hook, Host, undefined, Function, Seq);
%% @spec (Hook::atom(), Module::atom(), Function::atom(), Seq::integer()) -> ok