mirror of
https://github.com/anope/anope.git
synced 2026-06-29 15:56:37 +02:00
Allow OnPreHelp to stop processing
This commit is contained in:
@@ -25,7 +25,10 @@ class CommandHelp : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶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;
|
||||
|
||||
Reference in New Issue
Block a user