diff options
| author | Adam <Adam@anope.org> | 2011-09-19 13:12:52 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-09-19 13:12:52 -0400 |
| commit | 1184eb59c5abbaf8e435448567f2db50353ccff7 (patch) | |
| tree | b31e625f89824adee420737391a4b81c14295d52 /modules/pseudoclients/nickserv.cpp | |
| parent | 4c2a4929ea32dcd80dd4ac93ec6f329194bbf672 (diff) | |
Allow OnPreHelp to stop processing
Diffstat (limited to 'modules/pseudoclients/nickserv.cpp')
| -rw-r--r-- | modules/pseudoclients/nickserv.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/pseudoclients/nickserv.cpp b/modules/pseudoclients/nickserv.cpp index 428f2a67d..4e6678250 100644 --- a/modules/pseudoclients/nickserv.cpp +++ b/modules/pseudoclients/nickserv.cpp @@ -267,16 +267,17 @@ class NickServCore : public Module u->RemoveMode(NickServ, Name); } - void OnPreHelp(CommandSource &source, const std::vector<Anope::string> ¶ms) + EventReturn OnPreHelp(CommandSource &source, const std::vector<Anope::string> ¶ms) { if (!params.empty() || source.owner->nick != Config->NickServ) - return; + return EVENT_CONTINUE; source.Reply(_("\002%s\002 allows you to \"register\" a nickname and\n" "prevent others from using it. The following\n" "commands allow for registration and maintenance of\n" "nicknames; to use them, type \002%s%s \037command\037\002.\n" "For more information on a specific command, type\n" "\002%s%s %s \037command\037\002.\n "), Config->NickServ.c_str(), Config->UseStrictPrivMsgString.c_str(), Config->NickServ.c_str(), Config->UseStrictPrivMsgString.c_str(), Config->NickServ.c_str(), source.command.c_str()); + return EVENT_CONTINUE; } void OnPostHelp(CommandSource &source, const std::vector<Anope::string> ¶ms) |
