summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-09 00:20:33 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-09 00:20:33 +0000
commit2a2224023fc002a09e269c63c848ae6a84f5c03d (patch)
treeb92924520ed37525dc8500bd1949bc433b08e574 /src
parenta0d3dfa96198c7ab2ee574e9ef207de44503d48e (diff)
Remove ModulesDelayedAutoLoad.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1603 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/config.c7
-rw-r--r--src/init.c6
-rw-r--r--src/modules.c25
3 files changed, 0 insertions, 38 deletions
diff --git a/src/config.c b/src/config.c
index 6c51fd343..553287637 100644
--- a/src/config.c
+++ b/src/config.c
@@ -229,11 +229,8 @@ char *SessionLimitDetailsLoc;
bool OSOpersOnly;
char *Modules;
-char *ModulesDelayed;
char **ModulesAutoload;
int ModulesNumber;
-int ModulesDelayedNumber;
-char **ModulesDelayedAutoload;
/**
* Core Module Stuff
@@ -1326,8 +1323,6 @@ Directive directives[] = {
{"MysqlRetries", {{PARAM_POSINT, PARAM_RELOAD, &MysqlRetries}}},
{"MysqlRetryGap", {{PARAM_POSINT, PARAM_RELOAD, &MysqlRetryGap}}},
{"ModuleAutoload", {{PARAM_STRING, PARAM_RELOAD, &Modules}}},
- {"ModuleDelayedAutoload",
- {{PARAM_STRING, PARAM_RELOAD, &ModulesDelayed}}},
{"NetworkName", {{PARAM_STRING, PARAM_RELOAD, &NetworkName}}},
{"NewsCount", {{PARAM_POSINT, PARAM_RELOAD, &NewsCount}}},
{"NickLen", {{PARAM_POSINT, 0, &NickLen}}},
@@ -1859,8 +1854,6 @@ int read_config(int reload)
/* Modules Autoload building... :P */
ModulesAutoload = buildStringList(Modules, &ModulesNumber);
- ModulesDelayedAutoload =
- buildStringList(ModulesDelayed, &ModulesDelayedNumber);
HostServCoreModules =
buildStringList(HostCoreModules, &HostServCoreNumber);
MemoServCoreModules =
diff --git a/src/init.c b/src/init.c
index 162758a6f..47e7cf51c 100644
--- a/src/init.c
+++ b/src/init.c
@@ -667,12 +667,6 @@ int init_secondary(int ac, char **av)
ircdproto->SendEOB();
- /**
- * Load our delayed modeles - modules that are planing on making clients need to wait till now
- * where as modules wanting to modify our ircd connection messages need to load eariler :|
- **/
- modules_delayed_init();
-
/* Success! */
return 0;
}
diff --git a/src/modules.c b/src/modules.c
index a6cad9be7..e1794d3f9 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -273,31 +273,6 @@ int protocol_module_init(void)
}
/**
- * Automaticaly load modules at startup, delayed.
- * This function waits until the IRCD link has been made, and then attempts
- * to load the specified modules.
- */
-void modules_delayed_init(void)
-{
- int idx;
- int ret;
- Module *m;
-
- if(nothird) {
- return;
- }
-
- for (idx = 0; idx < ModulesDelayedNumber; idx++) {
- m = findModule(ModulesDelayedAutoload[idx]);
- if (!m) {
- ret = loadModule(ModulesDelayedAutoload[idx], NULL);
- mod_current_module = NULL;
- mod_current_user = NULL;
- }
- }
-}
-
-/**
* Unload ALL loaded modules, no matter what kind of module it is.
* Do NEVER EVER, and i mean NEVER (and if that isn't clear enough
* yet, i mean: NEVER AT ALL) call this unless we're shutting down,