From 1961fa282b71fadc8325e5a1161d259db87e447e Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Sun, 5 Oct 2008 21:54:18 +0000 Subject: [PATCH] Moved parse_options() from init_secondary() to init_primary(), this allows for easier debugging when using -nofork. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1426 5417fbe8-f217-4b02-8779-1006273d7864 --- src/init.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/init.c b/src/init.c index 3e59d4d81..109aad9e3 100644 --- a/src/init.c +++ b/src/init.c @@ -381,6 +381,8 @@ int init_primary(int ac, char **av) /* Parse command line for -dir and -version options. */ parse_dir_options(ac, av); + /* Parse all remaining command-line options. */ + parse_options(ac, av); /* Chdir to Services data directory. */ if (chdir(services_dir) < 0) { @@ -424,9 +426,6 @@ int init_secondary(int ac, char **av) /* Add Core MSG handles */ moduleAddMsgs(); - /* Parse all remaining command-line options. */ - parse_options(ac, av); - /* Parse the defcon mode string if needed */ if (DefConLevel) { if (!defconParseModeString(DefConChanModes)) {