summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-08 20:23:00 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-08 20:23:00 +0000
commit973ecb7058325931d14a9537e5e3e57595347a10 (patch)
tree43585f36085949a1b494374572fa4e3dc25b0960 /src/log.c
parente1ff14e0c44d0a115372a821559b782c57c793f3 (diff)
Rewrote sockets. This adds support for IPv6 and makes Anope capable of reconnecting if it loses connection to the uplink.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2862 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index a0cb38d59..41472e7ad 100644
--- a/src/log.c
+++ b/src/log.c
@@ -207,7 +207,7 @@ void fatal(const char *fmt, ...)
fprintf(logfile, "%s FATAL: %s\n", buf, buf2);
if (nofork)
fprintf(stderr, "%s FATAL: %s\n", buf, buf2);
- if (servsock >= 0)
+ if (UplinkSock)
ircdproto->SendGlobops(NULL, "FATAL ERROR! %s", buf2);
/* one of the many places this needs to be called from */
@@ -245,7 +245,7 @@ void fatal_perror(const char *fmt, ...)
if (nofork)
fprintf(stderr, "%s FATAL: %s: %s\n", buf, buf2,
strerror(errno_save));
- if (servsock >= 0)
+ if (UplinkSock)
ircdproto->SendGlobops(NULL, "FATAL ERROR! %s: %s", buf2,
strerror(errno_save));