summaryrefslogtreecommitdiff
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
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
-rw-r--r--include/modules.h56
-rw-r--r--src/core/bs_act.c2
-rw-r--r--src/core/bs_assign.c6
-rw-r--r--src/core/bs_badwords.c2
-rw-r--r--src/core/bs_bot.c2
-rw-r--r--src/core/bs_botlist.c6
-rw-r--r--src/core/bs_info.c6
-rw-r--r--src/core/bs_kick.c2
-rw-r--r--src/core/bs_say.c2
-rw-r--r--src/core/bs_set.c2
-rw-r--r--src/core/bs_unassign.c6
-rw-r--r--src/core/cs_access.c2
-rw-r--r--src/core/cs_akick.c2
-rw-r--r--src/core/cs_ban.c2
-rw-r--r--src/core/cs_clear.c2
-rw-r--r--src/core/cs_drop.c2
-rw-r--r--src/core/cs_forbid.c2
-rw-r--r--src/core/cs_getkey.c6
-rw-r--r--src/core/cs_getpass.c2
-rw-r--r--src/core/cs_identify.c2
-rw-r--r--src/core/cs_info.c6
-rw-r--r--src/core/cs_invite.c2
-rw-r--r--src/core/cs_kick.c2
-rw-r--r--src/core/cs_list.c2
-rw-r--r--src/core/cs_logout.c2
-rw-r--r--src/core/cs_modes.c2
-rw-r--r--src/core/cs_register.c2
-rw-r--r--src/core/cs_sendpass.c8
-rw-r--r--src/core/cs_set.c2
-rw-r--r--src/core/cs_status.c6
-rw-r--r--src/core/cs_suspend.c2
-rw-r--r--src/core/cs_topic.c2
-rw-r--r--src/core/cs_xop.c2
-rw-r--r--src/core/hs_del.c6
-rw-r--r--src/core/hs_delall.c2
-rw-r--r--src/core/hs_group.c2
-rw-r--r--src/core/hs_list.c2
-rw-r--r--src/core/hs_off.c2
-rw-r--r--src/core/hs_on.c2
-rw-r--r--src/core/hs_set.c2
-rw-r--r--src/core/hs_setall.c2
-rw-r--r--src/core/ms_cancel.c6
-rw-r--r--src/core/ms_check.c6
-rw-r--r--src/core/ms_del.c2
-rw-r--r--src/core/ms_info.c6
-rw-r--r--src/core/ms_list.c6
-rw-r--r--src/core/ms_read.c6
-rw-r--r--src/core/ms_rsend.c6
-rw-r--r--src/core/ms_send.c6
-rw-r--r--src/core/ms_sendall.c6
-rw-r--r--src/core/ms_set.c2
-rw-r--r--src/core/ms_staff.c6
-rw-r--r--src/core/ns_access.c2
-rw-r--r--src/core/ns_alist.c6
-rw-r--r--src/core/ns_drop.c2
-rw-r--r--src/core/ns_forbid.c2
-rw-r--r--src/core/ns_getemail.c12
-rw-r--r--src/core/ns_getpass.c2
-rw-r--r--src/core/ns_ghost.c6
-rw-r--r--src/core/ns_group.c2
-rw-r--r--src/core/ns_identify.c2
-rw-r--r--src/core/ns_info.c6
-rw-r--r--src/core/ns_list.c2
-rw-r--r--src/core/ns_logout.c8
-rw-r--r--src/core/ns_recover.c8
-rw-r--r--src/core/ns_register.c2
-rw-r--r--src/core/ns_release.c8
-rw-r--r--src/core/ns_saset.c2
-rw-r--r--src/core/ns_sendpass.c6
-rw-r--r--src/core/ns_set.c2
-rw-r--r--src/core/ns_status.c6
-rw-r--r--src/core/ns_suspend.c2
-rw-r--r--src/core/ns_update.c2
-rw-r--r--src/core/os_admin.c2
-rw-r--r--src/core/os_akill.c2
-rw-r--r--src/core/os_chankill.c2
-rw-r--r--src/core/os_chanlist.c6
-rw-r--r--src/core/os_clearmodes.c2
-rw-r--r--src/core/os_defcon.c2
-rw-r--r--src/core/os_global.c2
-rw-r--r--src/core/os_ignore.c6
-rw-r--r--src/core/os_jupe.c2
-rw-r--r--src/core/os_kick.c2
-rw-r--r--src/core/os_logonnews.c2
-rw-r--r--src/core/os_mode.c2
-rw-r--r--src/core/os_modinfo.c6
-rw-r--r--src/core/os_modlist.c6
-rw-r--r--src/core/os_modload.c6
-rw-r--r--src/core/os_modunload.c2
-rw-r--r--src/core/os_noop.c2
-rw-r--r--src/core/os_oline.c2
-rw-r--r--src/core/os_oper.c2
-rw-r--r--src/core/os_opernews.c2
-rw-r--r--src/core/os_quit.c2
-rw-r--r--src/core/os_randomnews.c6
-rw-r--r--src/core/os_reload.c2
-rw-r--r--src/core/os_restart.c2
-rw-r--r--src/core/os_session.c6
-rw-r--r--src/core/os_set.c2
-rw-r--r--src/core/os_sgline.c2
-rw-r--r--src/core/os_shutdown.c2
-rw-r--r--src/core/os_sqline.c2
-rw-r--r--src/core/os_staff.c2
-rw-r--r--src/core/os_stats.c2
-rw-r--r--src/core/os_svsnick.c2
-rw-r--r--src/core/os_szline.c2
-rw-r--r--src/core/os_umode.c2
-rw-r--r--src/core/os_update.c6
-rw-r--r--src/core/os_userlist.c6
-rw-r--r--src/modules.c77
-rw-r--r--src/modules/cs_appendtopic.c14
-rw-r--r--src/modules/cs_enforce.c14
-rw-r--r--src/modules/cs_tban.c14
-rw-r--r--src/modules/hs_request.c42
-rw-r--r--src/modules/os_info.c32
115 files changed, 308 insertions, 315 deletions
diff --git a/include/modules.h b/include/modules.h
index 76413d100..22356ad59 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -220,6 +220,55 @@ class CoreExport Module
void SetAuthor(const std::string &author);
/**
+ * 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 SetNickHelp(void (*func)(User *));
+
+ /**
+ * 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 SetChanHelp(void (*func)(User *));
+
+ /**
+ * 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 SetMemoHelp(void (*func)(User *));
+
+ /**
+ * 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 SetBotHelp(void (*func)(User *));
+
+ /**
+ * 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 SetOperHelp(void (*func)(User *));
+
+ /**
+ * 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 SetHostHelp(void (*func)(User *));
+
+ /**
+ * 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 SetHelpHelp(void (*func)(User *));
+
+ /**
* Allow a module to add a set of language strings to anope
* @param langNumber the language number for the strings
* @param ac The language count for the strings
@@ -434,14 +483,7 @@ int protocol_module_init(void); /* Load the IRCD Protocol Module up*/
void moduleCallBackPrepForUnload(const char *mod_name);
MDE void moduleCallBackDeleteEntry(ModuleCallBack * prev);
MDE char *moduleGetLastBuffer(void);
-MDE void moduleSetHelpHelp(void (*func) (User * u));
MDE void moduleDisplayHelp(int service, User *u);
-MDE void moduleSetHostHelp(void (*func) (User * u));
-MDE void moduleSetOperHelp(void (*func) (User * u));
-MDE void moduleSetBotHelp(void (*func) (User * u));
-MDE void moduleSetMemoHelp(void (*func) (User * u));
-MDE void moduleSetChanHelp(void (*func) (User * u));
-MDE void moduleSetNickHelp(void (*func) (User * u));
MDE int moduleAddHelp(Command * c, int (*func) (User * u));
MDE int moduleAddRegHelp(Command * c, int (*func) (User * u));
MDE int moduleAddOperHelp(Command * c, int (*func) (User * u));
diff --git a/src/core/bs_act.c b/src/core/bs_act.c
index 87cd3d21d..11ea82071 100644
--- a/src/core/bs_act.c
+++ b/src/core/bs_act.c
@@ -31,7 +31,7 @@ class BSAct : public Module
c = createCommand("ACT", do_act, NULL, BOT_HELP_ACT, -1, -1, -1, -1);
this->AddCommand(BOTSERV, c, MOD_UNIQUE);
- moduleSetBotHelp(myBotServHelp);
+ this->SetBotHelp(myBotServHelp);
}
};
diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c
index 030a3c215..e94e7d0b3 100644
--- a/src/core/bs_assign.c
+++ b/src/core/bs_assign.c
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- *
+ * Based on the original code of Services by Andy Church.
+ *
* $Id$
*
*/
@@ -31,7 +31,7 @@ class BSAssign : public Module
c = createCommand("ASSIGN", do_assign, NULL, BOT_HELP_ASSIGN, -1, -1, -1, -1);
this->AddCommand(BOTSERV, c, MOD_UNIQUE);
- moduleSetBotHelp(myBotServHelp);
+ this->SetBotHelp(myBotServHelp);
}
};
diff --git a/src/core/bs_badwords.c b/src/core/bs_badwords.c
index 3fce1698e..13f6d19c7 100644
--- a/src/core/bs_badwords.c
+++ b/src/core/bs_badwords.c
@@ -35,7 +35,7 @@ class BSBadwords : public Module
c = createCommand("BADWORDS", do_badwords, NULL, BOT_HELP_BADWORDS, -1, -1, -1, -1);
this->AddCommand(BOTSERV, c, MOD_UNIQUE);
- moduleSetBotHelp(myBotServHelp);
+ this->SetBotHelp(myBotServHelp);
}
};
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c
index 77e1f712e..2d0b5387b 100644
--- a/src/core/bs_bot.c
+++ b/src/core/bs_bot.c
@@ -32,7 +32,7 @@ class BSBot : public Module
c = createCommand("BOT", do_bot, is_services_admin, -1, -1, -1, BOT_SERVADMIN_HELP_BOT, BOT_SERVADMIN_HELP_BOT);
this->AddCommand(BOTSERV, c, MOD_UNIQUE);
- moduleSetBotHelp(myBotServHelp);
+ this->SetBotHelp(myBotServHelp);
}
};
diff --git a/src/core/bs_botlist.c b/src/core/bs_botlist.c
index 75cbe1a90..f1c50c906 100644
--- a/src/core/bs_botlist.c
+++ b/src/core/bs_botlist.c
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- *
+ * Based on the original code of Services by Andy Church.
+ *
* $Id$
*
*/
@@ -31,7 +31,7 @@ class BSBotList : public Module
c = createCommand("BOTLIST", do_botlist, NULL, BOT_HELP_BOTLIST, -1, -1, -1, -1);
this->AddCommand(BOTSERV, c, MOD_UNIQUE);
- moduleSetBotHelp(myBotServHelp);
+ this->SetBotHelp(myBotServHelp);
}
};
diff --git a/src/core/bs_info.c b/src/core/bs_info.c
index d3590f624..9cc5bed67 100644
--- a/src/core/bs_info.c
+++ b/src/core/bs_info.c
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- *
+ * Based on the original code of Services by Andy Church.
+ *
* $Id$
*
*/
@@ -32,7 +32,7 @@ class BSInfo : public Module
c = createCommand("INFO", do_info, NULL, BOT_HELP_INFO, -1, -1, -1, -1);
this->AddCommand(BOTSERV, c, MOD_UNIQUE);
- moduleSetBotHelp(myBotServHelp);
+ this->SetBotHelp(myBotServHelp);
}
};
diff --git a/src/core/bs_kick.c b/src/core/bs_kick.c
index 55d230710..52d1caad1 100644
--- a/src/core/bs_kick.c
+++ b/src/core/bs_kick.c
@@ -48,7 +48,7 @@ class BSKick : public Module
c = createCom