summaryrefslogtreecommitdiff
path: root/modules/pseudoclients/memoserv.cpp
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/pseudoclients/memoserv.cpp
parent4c2a4929ea32dcd80dd4ac93ec6f329194bbf672 (diff)
Allow OnPreHelp to stop processing
Diffstat (limited to 'modules/pseudoclients/memoserv.cpp')
-rw-r--r--modules/pseudoclients/memoserv.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/pseudoclients/memoserv.cpp b/modules/pseudoclients/memoserv.cpp
index ca131b0de..c1f99bc41 100644
--- a/modules/pseudoclients/memoserv.cpp
+++ b/modules/pseudoclients/memoserv.cpp
@@ -201,16 +201,17 @@ class MemoServCore : public Module
this->mymemoserv.Check(u);
}
- void OnPreHelp(CommandSource &source, const std::vector<Anope::string> &params)
+ EventReturn OnPreHelp(CommandSource &source, const std::vector<Anope::string> &params)
{
if (!params.empty() || source.owner->nick != Config->MemoServ)
- return;
+ return EVENT_CONTINUE;
source.Reply(_("\002%s\002 is a utility allowing IRC users to send short\n"
"messages to other IRC users, whether they are online at\n"
"the time or not, or to channels(*). Both the sender's\n"
"nickname and the target nickname or channel must be\n"
"registered in order to send a memo.\n"
"%s's commands include:"), Config->MemoServ.c_str(), Config->MemoServ.c_str());
+ return EVENT_CONTINUE;
}
void OnPostHelp(CommandSource &source, const std::vector<Anope::string> &params)