1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 04:23:13 +02:00

Move createModule and destroyModule into constructor and destructor of class Module.

This won't yet compile, as a lot of stuff throws around newly initialised Module * for no reason, and this needs to change.
TODO:
 - remove mod_current_* stuff
 - remove module queueing (this will probably require a permanent module flag for os_modunload, but who cares).


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1560 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-11-06 15:48:55 +00:00
parent 88f9975f40
commit b9aeca4708
2 changed files with 62 additions and 84 deletions
-2
View File
@@ -275,8 +275,6 @@ struct EvtHookHash_ {
/*************************************************************************/
/* Module Managment Functions */
MDE Module *createModule(char *filename); /* Create a new module, using the given name */
int destroyModule(Module *m); /* Delete the module */
int addModule(Module *m); /* Add a module to the module hash */
int delModule(Module *m); /* Remove a module from the module hash */
MDE Module *findModule(const char *name); /* Find a module */