]> jfr.im git - irc/quakenet/newserv.git/blobdiff - core/error.c
HELPMOD2: don't ignore +h clients
[irc/quakenet/newserv.git] / core / error.c
index 3200ee3eabda1b8b5d149f1170ad45ab7b8977db..f7e554e3f8f97d356cd96460513c03d6d30408ad 100644 (file)
@@ -79,8 +79,12 @@ void Error(char *source, int severity, char *reason, ... ) {
     tm=gmtime(&now);
     strftime(timebuf,100,"%Y-%m-%d %H:%M:%S",tm);
     fprintf(stderr,"[%s] %s(%s): %s\n",timebuf,sevtostring(severity),source,buf);
-    if (logfile) 
+    fflush(stderr);
+
+    if (logfile)  {
       fprintf(logfile,"[%s] %s(%s): %s\n",timebuf,sevtostring(severity),source,buf);
+      fflush(logfile);
+    }
   }
   
   if (severity>=ERR_STOP) {