diff options
author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-03-14 15:01:51 +0000 |
---|---|---|
committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-03-14 15:01:51 +0000 |
commit | f6531372757188ad4853eb7d355299317603216f (patch) | |
tree | bebbc53549b185d18352badb52c1efe36ea458b1 /src/init.c | |
parent | ba935451d8eb2e90d334676f06c5bf5c8898a4f0 (diff) |
# BUILD : 1.7.13 (1008) # BUGS : 473 474 # NOTES : gcc switches and win98 stop, thx 2 trystan
git-svn-id: svn://svn.anope.org/anope/trunk@1008 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@733 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/init.c')
-rw-r--r-- | src/init.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/init.c b/src/init.c index f0212cc70..04f2e64b9 100644 --- a/src/init.c +++ b/src/init.c @@ -405,6 +405,9 @@ int openlog_failed = 0, openlog_errno = 0; int init_primary(int ac, char **av) { int started_from_term = isatty(0) && isatty(1) && isatty(2); +#ifdef _WIN32
+ char *winver;
+#endif /* Set file creation mask and group ID. */ #if defined(DEFUMASK) && HAVE_UMASK @@ -484,6 +487,13 @@ int init_secondary(int ac, char **av) return -1; } } + if (!SupportedWindowsVersion()) {
+ 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(); |