static void
read_conf(FILE *file)
{
- lineno = 0;
+ lineno = 1;
set_default_conf(); /* Set default values prior to conf parsing */
conf_parser_ctx.pass = 1;
strip_tabs(newlinebuf, linebuf, sizeof(newlinebuf));
sendto_snomask(SNO_ALL, L_ADMIN,
"\"%s\", line %u: %s: %s",
- conffilebuf, lineno + 1, msg, newlinebuf);
+ conffilebuf, lineno, msg, newlinebuf);
ilog(LOG_TYPE_IRCD, "\"%s\", line %u: %s: %s",
- conffilebuf, lineno + 1, msg, newlinebuf);
+ conffilebuf, lineno, msg, newlinebuf);
}
void
strip_tabs(newlinebuf, linebuf, sizeof(newlinebuf));
sendto_snomask(SNO_ALL, L_ADMIN,
"\"%s\", line %u: %s: %s",
- conffilebuf, lineno + 1, msg, newlinebuf);
+ conffilebuf, lineno, msg, newlinebuf);
ilog(LOG_TYPE_IRCD, "\"%s\", line %u: %s: %s",
- conffilebuf, lineno + 1, msg, newlinebuf);
+ conffilebuf, lineno, msg, newlinebuf);
}
/*