summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-28 03:05:31 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-28 03:05:31 +0000
commit7fdd8d7872adb8ee810907d785de87f0686a6289 (patch)
tree49d7b3ffe9cb44a19b25d827068a74c44e961bf8 /src/modules.c
parentbac9e520ed706e7fcf37c26a8f31b3e8964efc71 (diff)
Moved moduleSet*Help() functions to Module::Set*Help().
Also corrected a few issues with tabs in the help lines for non-core modules caused from the space->tab conversion a while back. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1804 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c77
1 files changed, 14 insertions, 63 deletions
diff --git a/src/modules.c b/src/modules.c
index 085f77d91..64817b52b 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -991,88 +991,39 @@ int moduleAddHelp(Command * c, int (*func) (User * u))
return MOD_CONT;
}
-/**
- * Add output to nickserv help.
- * when doing a /msg nickserv help, your function will be called to allow it to send out a notice() with the code you wish to dispaly
- * @param func a pointer to the function which will display the code
- **/
-void moduleSetNickHelp(void (*func) (User * u))
+void Module::SetNickHelp(void (*func)(User *))
{
- if (mod_current_module) {
- mod_current_module->nickHelp = func;
- }
+ this->nickHelp = func;
}
-/**
- * Add output to chanserv help.
- * when doing a /msg chanserv help, your function will be called to allow it to send out a notice() with the code you wish to dispaly
- * @param func a pointer to the function which will display the code
- **/
-void moduleSetChanHelp(void (*func) (User * u))
+void Module::SetChanHelp(void (*func)(User *))
{
- if (mod_current_module) {
- mod_current_module->chanHelp = func;
- }
+ this->chanHelp = func;
}
-/**
- * Add output to memoserv help.
- * when doing a /msg memoserv help, your function will be called to allow it to send out a notice() with the code you wish to dispaly
- * @param func a pointer to the function which will display the code
- **/
-void moduleSetMemoHelp(void (*func) (User * u))
+void Module::SetMemoHelp(void (*func)(User *))
{
- if (mod_current_module) {
- mod_current_module->memoHelp = func;
- }
+ this->memoHelp = func;
}
-/**
- * Add output to botserv help.
- * when doing a /msg botserv help, your function will be called to allow it to send out a notice() with the code you wish to dispaly
- * @param func a pointer to the function which will display the code
- **/
-void moduleSetBotHelp(void (*func) (User * u))
+void Module::SetBotHelp(void (*func)(User *))
{
- if (mod_current_module) {
- mod_current_module->botHelp = func;
- }
+ this->botHelp = func;
}
-/**
- * Add output to operserv help.
- * when doing a /msg operserv help, your function will be called to allow it to send out a notice() with the code you wish to dispaly
- * @param func a pointer to the function which will display the code
- **/
-void moduleSetOperHelp(void (*func) (User * u))
+void Module::SetOperHelp(void (*func)(User *))
{
- if (mod_current_module) {
- mod_current_module->operHelp = func;
- }
+ this->operHelp = func;
}
-/**
- * Add output to hostserv help.
- * when doing a /msg hostserv help, your function will be called to allow it to send out a notice() with the code you wish to dispaly
- * @param func a pointer to the function which will display the code
- **/
-void moduleSetHostHelp(void (*func) (User * u))
+void Module::SetHostHelp(void (*func)(User *))
{
- if (mod_current_module) {
- mod_current_module->hostHelp = func;
- }
+ this->hostHelp = func;
}
-/**
- * Add output to helpserv help.
- * when doing a /msg helpserv help, your function will be called to allow it to send out a notice() with the code you wish to dispaly
- * @param func a pointer to the function which will display the code
- **/
-void moduleSetHelpHelp(void (*func) (User * u))
+void Module::SetHelpHelp(void (*func)(User *))
{
- if (mod_current_module) {
- mod_current_module->helpHelp = func;
- }
+ this->helpHelp = func;
}
/**