From 6690784bff9e62e9d1a742080294ca8008c4efe3 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Thu, 22 Jun 2006 07:48:45 +0000 Subject: BUILD : 1.7.14 (1068) BUGS : N/A NOTES : Added -nothird and -support command line options git-svn-id: svn://svn.anope.org/anope/trunk@1068 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@792 5417fbe8-f217-4b02-8779-1006273d7864 --- src/init.c | 8 ++++++++ src/main.c | 1 + src/modules.c | 12 ++++++++++-- 3 files changed, 19 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/init.c b/src/init.c index f286bab71..1d0f85c91 100644 --- a/src/init.c +++ b/src/init.c @@ -321,6 +321,12 @@ static int parse_options(int ac, char **av) logchan = 1; } else if (strcmp(s, "forceload") == 0) { forceload = 1; + } else if (strcmp(s, "nothird") == 0) { + nothird = 1; + } else if (strcmp(s, "support") == 0) { + nofork = 1; + debug++; + nothird = 1; } else if (!strcmp(s, "noexpire")) { noexpire = 1; } else if (!strcmp(s, "help")) { @@ -345,6 +351,8 @@ static int parse_options(int ac, char **av) fprintf(stdout, "-logchan -logchan channelname\n"); fprintf(stdout, "-skeleton -skeleton\n"); fprintf(stdout, "-forceload -forceload\n"); + fprintf(stdout, "-nothird -nothird\n"); + fprintf(stdout, "-support -support\n"); fprintf(stdout, "-readonly -readonly\n"); fprintf(stdout, "-noexpire -noexpire\n"); fprintf(stdout, "-version -version\n"); diff --git a/src/main.c b/src/main.c index 07b165ade..2e6de7ddb 100644 --- a/src/main.c +++ b/src/main.c @@ -42,6 +42,7 @@ int logchan = 0; /* -logchan */ int skeleton = 0; /* -skeleton */ int nofork = 0; /* -nofork */ int forceload = 0; /* -forceload */ +int nothird = 0; /* -nothrid */ int noexpire = 0; /* -noexpire */ #ifdef USE_RDB diff --git a/src/modules.c b/src/modules.c index 74af24bb9..19d1a0a84 100644 --- a/src/modules.c +++ b/src/modules.c @@ -93,7 +93,11 @@ 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) { @@ -197,7 +201,11 @@ 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) { -- cgit