From beccbe318c1d8b01179daab2f5ad4e7ec7234136 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 18 Jun 2009 00:37:19 +0200 Subject: [PATCH] Show yyerror() parse errors on stderr on startup. Noticed by: spb --- src/s_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_conf.c b/src/s_conf.c index fcf83bfa..94e8669d 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -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