]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Log "Can't read MOTD file" as "configuration error"
authorAlexander Barton <alex@barton.de>
Tue, 18 Jan 2011 22:44:07 +0000 (23:44 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 18 Jan 2011 22:44:07 +0000 (23:44 +0100)
Now this error message is displayed in the console without debug prefix
when running the configuration test (--configtest).

src/ngircd/conf.c

index db91a578604dd29d8b7752b0d431fb2cbff4e224..6c0e35170efd85e87d1c9a1395599afa12c88cf5 100644 (file)
@@ -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;
        }