summaryrefslogtreecommitdiff
path: root/src/core/ms_read.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_read.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_read.c')
-rw-r--r--src/core/ms_read.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/core/ms_read.c b/src/core/ms_read.c
index 15c968b94..fe5a959eb 100644
--- a/src/core/ms_read.c
+++ b/src/core/ms_read.c
@@ -17,7 +17,6 @@
int read_memo_callback(User *u, int num, va_list args);
int read_memo(User *u, int index, MemoInfo *mi, const char *chan);
-void myMemoServHelp(User *u);
extern void rsend_notify(User *u, Memo *m, const char *chan);
class CommandMSRead : public Command
@@ -131,20 +130,14 @@ class MSRead : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
this->AddCommand(MEMOSERV, new CommandMSRead(), MOD_UNIQUE);
- this->SetMemoHelp(myMemoServHelp);
+ }
+ void MemoServHelp(User *u)
+ {
+ notice_lang(s_MemoServ, u, MEMO_HELP_CMD_READ);
}
};
/**
- * 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_READ);
-}
-
-/**
* Read a memo callback function
* @param u User Struct
* @param int Index number