diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-06 21:25:56 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-06 21:25:56 +0000 |
commit | 578da38d30893ca33cc1aa9183e4b82d67c831f3 (patch) | |
tree | cd2bada4c31d277463d44a63a8257339dbbcad26 /src/core/ms_send.c | |
parent | fbb1ab92468cce3b4414a1232c4efc77d34e27c8 (diff) |
Replace Set*Help() functions with virtual *ServHelp() functions that can be overriden in a module's Module class. Patch from Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2266 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ms_send.c')
-rw-r--r-- | src/core/ms_send.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/core/ms_send.c b/src/core/ms_send.c index fcc0bdf0b..9c9db1c7a 100644 --- a/src/core/ms_send.c +++ b/src/core/ms_send.c @@ -15,8 +15,6 @@ #include "module.h" -void myMemoServHelp(User *u); - class CommandMSSend : public Command { public: @@ -54,17 +52,11 @@ class MSSend : public Module this->SetVersion("$Id$"); this->SetType(CORE); this->AddCommand(MEMOSERV, new CommandMSSend(), MOD_UNIQUE); - this->SetMemoHelp(myMemoServHelp); + } + void MemoServHelp(User *u) + { + notice_lang(s_MemoServ, u, MEMO_HELP_CMD_SEND); } }; -/** - * Add the help response to anopes /ms help output. - * @param u The user who is requesting help - **/ -void myMemoServHelp(User *u) -{ - notice_lang(s_MemoServ, u, MEMO_HELP_CMD_SEND); -} - MODULE_INIT("ms_send", MSSend) |