]> jfr.im git - solanum.git/commitdiff
Show yyerror() parse errors on stderr on startup.
authorJilles Tjoelker <redacted>
Wed, 17 Jun 2009 22:37:19 +0000 (00:37 +0200)
committerJilles Tjoelker <redacted>
Wed, 17 Jun 2009 22:37:19 +0000 (00:37 +0200)
Noticed by: spb

src/s_conf.c

index fcf83bfa24e5fdcd0bc1e61065ff617b2cf4aee0..94e8669d9146af3ce30bada0dec87accb55fe14b 100644 (file)
@@ -1523,10 +1523,10 @@ yyerror(const char *msg)
 
        strip_tabs(newlinebuf, linebuf, strlen(linebuf));
 
+       ierror("\"%s\", line %d: %s at '%s'", conffilebuf, lineno + 1, msg, newlinebuf);
        sendto_realops_snomask(SNO_GENERAL, L_ALL, "\"%s\", line %d: %s at '%s'",
                             conffilebuf, lineno + 1, msg, newlinebuf);
 
-       ilog(L_MAIN, "\"%s\", line %d: %s at '%s'", conffilebuf, lineno + 1, msg, newlinebuf);
 }
 
 int