summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 01:30:43 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 01:30:43 +0000
commit26cdf257cc864b9ca91e4424e4bc31dc766b2c5d (patch)
treee4902d9f7920b7a81d138e22e32d1890ac847922 /include/modules.h
parent7571ca327e33f649f954604396c1d97c2714b0e0 (diff)
moduleAddEventHook -> Module::AddEventHook.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1587 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index 9ffbd8ea3..0aee1d758 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -185,6 +185,14 @@ CoreExport class Module
*
**/
int AddEventHook(EvtHook *evh);
+
+ /**
+ * Add a module message to the IRCD message hash
+ * @param m the Message to add
+ * @param pos the Position to add the message to, e.g. MOD_HEAD, MOD_TAIL, MOD_UNIQUE
+ * @return MOD_ERR_OK on success, althing else on fail.
+ **/
+ int AddEventHandler(EvtMessage *evm);
};
struct ModuleHash_ {
@@ -356,7 +364,6 @@ int destroyMessage(Message *m); /* destroy a Message*/
MDE EvtMessage *createEventHandler(char *name, int (*func) (const char *source, int ac, const char **av));
EvtMessage *findEventHandler(EvtMessageHash * msgEvtTable[], const char *name);
int addCoreEventHandler(EvtMessageHash * msgEvtTable[], EvtMessage * evm);
-MDE int moduleAddEventHandler(EvtMessage * evm);
MDE int moduleEventDelHandler(char *name);
int delEventHandler(EvtMessageHash * msgEvtTable[], EvtMessage * evm, const char *mod_name);
int destroyEventHandler(EvtMessage * evm);
@@ -365,7 +372,6 @@ int addEventHandler(EvtMessageHash * msgEvtTable[], EvtMessage * evm);
MDE EvtHook *createEventHook(const char *name, int (*func) (int argc, char **argv));
EvtHook *findEventHook(EvtHookHash * HookEvtTable[], const char *name);
int addCoreEventHook(EvtHookHash * HookEvtTable[], EvtHook * evh);
-MDE int moduleAddEventHook(EvtHook * evh);
MDE int moduleEventDelHook(const char *name);
int delEventHook(EvtHookHash * HookEvtTable[], EvtHook * evh, const char *mod_name);
int destroyEventHook(EvtHook * evh);