summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init.c2
-rw-r--r--src/modules.c32
2 files changed, 2 insertions, 32 deletions
diff --git a/src/init.c b/src/init.c
index 47e7cf51c..fea6f0aa0 100644
--- a/src/init.c
+++ b/src/init.c
@@ -529,7 +529,7 @@ int init_secondary(int ac, char **av)
helpserv_init();
/* load any custom modules */
- modules_init();
+ modules_core_init(ModulesNumber, ModulesAutoload);
/* Initialize random number generator */
rand_init();
diff --git a/src/modules.c b/src/modules.c
index e1794d3f9..bb7bc8668 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -171,38 +171,8 @@ static int displayMessageFromHash(const char *name)
/************************************************/
-
-
-
-
-
-/**
- * Automaticaly load modules at startup.
- * This will load modules at startup before the IRCD link is attempted, this
- * allows admins to have a module relating to ircd support load
- */
-void modules_init(void)
-{
- int idx;
- int ret;
- Module *m;
-
- if(nothird) {
- return;
- }
-
- for (idx = 0; idx < ModulesNumber; idx++) {
- m = findModule(ModulesAutoload[idx]);
- if (!m) {
- ret = loadModule(ModulesAutoload[idx], NULL);
- mod_current_module = NULL;
- mod_current_user = NULL;
- }
- }
-}
-
/**
- * Load up a list of core modules from the conf.
+ * Load up a list of modules.
* @param number The number of modules to load
* @param list The list of modules to load
**/