summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-19 13:12:52 -0400
committerAdam <Adam@anope.org>2011-09-19 13:12:52 -0400
commit1184eb59c5abbaf8e435448567f2db50353ccff7 (patch)
treeb31e625f89824adee420737391a4b81c14295d52 /modules/commands
parent4c2a4929ea32dcd80dd4ac93ec6f329194bbf672 (diff)
Allow OnPreHelp to stop processing
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/cs_akick.cpp2
-rw-r--r--modules/commands/help.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/modules/commands/cs_akick.cpp b/modules/commands/cs_akick.cpp
index 86c245059..f4325ea3a 100644
--- a/modules/commands/cs_akick.cpp
+++ b/modules/commands/cs_akick.cpp
@@ -461,7 +461,7 @@ class CommandCSAKick : public Command
this->SetSyntax(_("\037channel\037 ADD {\037nick\037 | \037mask\037} [\037reason\037]"));
this->SetSyntax(_("\037channel\037 DEL {\037nick\037 | \037mask\037 | \037entry-num\037 | \037list\037}"));
this->SetSyntax(_("\037channel\037 LIST [\037mask\037 | \037entry-num\037 | \037list\037]"));
- this->SetSyntax(_("\002AKICK \037channel\037 VIEW [\037mask\037 | \037entry-num\037 | \037list\037]"));
+ this->SetSyntax(_("\037channel\037 VIEW [\037mask\037 | \037entry-num\037 | \037list\037]"));
this->SetSyntax(_("\037channel\037 ENFORCE"));
this->SetSyntax(_("\037channel\037 CLEAR"));
}
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<Anope::string> &params)
{
- 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;