From 1184eb59c5abbaf8e435448567f2db50353ccff7 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 19 Sep 2011 13:12:52 -0400 Subject: Allow OnPreHelp to stop processing --- modules/commands/help.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/commands/help.cpp') diff --git a/modules/commands/help.cpp b/modules/commands/help.cpp index bde3b5762..f09764fa1 100644 --- a/modules/commands/help.cpp +++ b/modules/commands/help.cpp @@ -25,7 +25,10 @@ class CommandHelp : public Command void Execute(CommandSource &source, const std::vector ¶ms) { - FOREACH_MOD(I_OnPreHelp, OnPreHelp(source, params)); + EventReturn MOD_RESULT; + FOREACH_RESULT(I_OnPreHelp, OnPreHelp(source, params)); + if (MOD_RESULT == EVENT_STOP) + return; User *u = source.u; BotInfo *bi = source.owner; -- cgit