summaryrefslogtreecommitdiff
path: root/src/core/ms_set.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 21:25:56 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 21:25:56 +0000
commit578da38d30893ca33cc1aa9183e4b82d67c831f3 (patch)
treecd2bada4c31d277463d44a63a8257339dbbcad26 /src/core/ms_set.c
parentfbb1ab92468cce3b4414a1232c4efc77d34e27c8 (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_set.c')
-rw-r--r--src/core/ms_set.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/core/ms_set.c b/src/core/ms_set.c
index a9922aae8..4d96b355e 100644
--- a/src/core/ms_set.c
+++ b/src/core/ms_set.c
@@ -15,8 +15,6 @@
#include "module.h"
-void myMemoServHelp(User *u);
-
class CommandMSSet : public Command
{
private:
@@ -266,18 +264,11 @@ class MSSet : public Module
this->SetType(CORE);
this->AddCommand(MEMOSERV, new CommandMSSet(), MOD_UNIQUE);
-
- this->SetMemoHelp(myMemoServHelp);
+ }
+ void MemoServHelp(User *u)
+ {
+ notice_lang(s_MemoServ, u, MEMO_HELP_CMD_SET);
}
};
-/**
- * Add the help response to anopes /hs help output.
- * @param u The user who is requesting help
- **/
-void myMemoServHelp(User *u)
-{
- notice_lang(s_MemoServ, u, MEMO_HELP_CMD_SET);
-}
-
MODULE_INIT("ms_set", MSSet)