summaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 21:54:18 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 21:54:18 +0000
commit1961fa282b71fadc8325e5a1161d259db87e447e (patch)
tree32409a9d99a5fad4de3f006f1590a872a47d7a96 /src/init.c
parenteda321aa90bfb714013fc2651c671f2415b5280a (diff)
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
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c5
1 files 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)) {