diff --git a/src/ejabberd_hooks.erl b/src/ejabberd_hooks.erl index e1f99eb88..87c26c5ed 100644 --- a/src/ejabberd_hooks.erl +++ b/src/ejabberd_hooks.erl @@ -151,7 +151,7 @@ run(Hook, Host, Args) -> %% The arguments passed to the function are: [Val | Args]. %% The result of a call is used as Val for the next call. %% If a call returns 'stop', no more calls are performed and 'stopped' is returned. -%% If a call returns {stopped, NewVal}, no more calls are performed and NewVal is returned. +%% If a call returns {stop, NewVal}, no more calls are performed and NewVal is returned. run_fold(Hook, Val, Args) -> run_fold(Hook, global, Val, Args).