From 7fdd8d7872adb8ee810907d785de87f0686a6289 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Fri, 28 Nov 2008 03:05:31 +0000 Subject: 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 --- include/modules.h | 56 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 49 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 76413d100..22356ad59 100644 --- a/include/modules.h +++ b/include/modules.h @@ -219,6 +219,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 @@ -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)); -- cgit