mirror of
https://github.com/anope/anope.git
synced 2026-07-06 17:23:13 +02:00
BUILD : 1.7.18 (1237) BUGS : 661 NOTES : Fixed DefCon which did not force DefConChanModes when it was enabled
git-svn-id: svn://svn.anope.org/anope/trunk@1237 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@956 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
df8e1b5f39
commit
ab0dc81bc2
+22
-6
@@ -475,6 +475,17 @@ int init_secondary(int ac, char **av)
|
||||
/* Parse all remaining command-line options. */
|
||||
parse_options(ac, av);
|
||||
|
||||
/* Parse the defcon mode string if needed */
|
||||
if (DefConLevel) {
|
||||
int defconCount;
|
||||
for (defconCount = 1; defconCount <= 5; defconCount++) {
|
||||
if (!defconParseModeString(DefConChanModes)) {
|
||||
fprintf(stderr,
|
||||
"services.conf: The given DefConChanModes mode string was incorrect (see log for exact errors)\n");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifndef _WIN32
|
||||
if (!nofork) {
|
||||
if ((i = fork()) < 0) {
|
||||
@@ -503,12 +514,17 @@ int init_secondary(int ac, char **av)
|
||||
}
|
||||
}
|
||||
if (!SupportedWindowsVersion()) {
|
||||
|
||||
char *winver = GetWindowsVersion();
|
||||
|
||||
alog("%s is not a supported version of Windows", winver);
|
||||
|
||||
free(winver);
|
||||
|
||||
char *winver = GetWindowsVersion();
|
||||
|
||||
alog("%s is not a supported version of Windows", winver);
|
||||
|
||||
free(winver);
|
||||
|
||||
return -1;
|
||||
|
||||
}
|
||||
if (!nofork) {
|
||||
alog("Launching Anope into the background");
|
||||
FreeConsole();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user