diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-06 23:50:03 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-06 23:50:03 +0000 |
| commit | 9e9ec919ec2e10ae262ec6402f1af3a0171d5444 (patch) | |
| tree | 22e2e4e1d1d25996bf1697811382d38ada5064a1 /include/modules.h | |
| parent | 4171f140c237f6384ddd55f6015678ef270df7e4 (diff) | |
Add proper constructor, move Module::name to be string.. still doesn't compile, of course, as this still needs a lot more renovation.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1568 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
| -rw-r--r-- | include/modules.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/modules.h b/include/modules.h index 2fe37f9c2..31cf9bf0a 100644 --- a/include/modules.h +++ b/include/modules.h @@ -136,7 +136,7 @@ class Module { public: // XXX :( - char *name; + std::string name; char *filename; void *handle; time_t time; @@ -159,7 +159,7 @@ class Module /** Creates and initialises a new module. * @param loadernick The nickname of the user loading the module. */ - Module(const std::string &loadernick); + Module(const std::string &modname, const std::string &loadernick); /** Destroys a module, freeing resources it has allocated. */ @@ -333,7 +333,7 @@ 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, char *mod_name); +int delEventHandler(EvtMessageHash * msgEvtTable[], EvtMessage * evm, const char *mod_name); int destroyEventHandler(EvtMessage * evm); int addEventHandler(EvtMessageHash * msgEvtTable[], EvtMessage * evm); @@ -342,7 +342,7 @@ 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, char *mod_name); +int delEventHook(EvtHookHash * HookEvtTable[], EvtHook * evh, const char *mod_name); int destroyEventHook(EvtHook * evh); MDE void moduleInsertLanguage(int langNumber, int ac, const char **av); |
