From b856a580511a0e25be375bd83efd480c61e62a80 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 18 Jan 2011 23:44:07 +0100 Subject: [PATCH] Log "Can't read MOTD file" as "configuration error" Now this error message is displayed in the console without debug prefix when running the configuration test (--configtest). --- src/ngircd/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index db91a578..6c0e3517 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -668,7 +668,7 @@ Read_Motd(const char *filename) fp = fopen(filename, "r"); if (!fp) { - Log(LOG_WARNING, "Can't read MOTD file \"%s\": %s", + Config_Error(LOG_WARNING, "Can't read MOTD file \"%s\": %s", filename, strerror(errno)); return; } -- 2.39.2