diff options
| author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-06-22 07:48:45 +0000 |
|---|---|---|
| committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-06-22 07:48:45 +0000 |
| commit | 6690784bff9e62e9d1a742080294ca8008c4efe3 (patch) | |
| tree | 2de543e4d4e90e0e14db8bea948d589a74bb7176 /src | |
| parent | 3379d00c8e19ac80e2abdeb2226102d3db1ce0fb (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/init.c | 8 | ||||
| -rw-r--r-- | src/main.c | 1 | ||||
| -rw-r--r-- | src/modules.c | 12 |
3 files changed, 19 insertions, 2 deletions
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) { |
