summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init.c8
-rw-r--r--src/main.c1
-rw-r--r--src/modules.c12
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) {