]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Don't show the default config file name on config errors
authorAlexander Barton <alex@barton.de>
Sun, 21 Jan 2024 18:58:01 +0000 (19:58 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 21 Jan 2024 19:15:47 +0000 (20:15 +0100)
The configuration can be set in drop-in files in the include directory,
too, so it is not clear in which file it is actually missing.

src/ngircd/conf.c

index eaa5e932494a0697e9b7bcfe9ca713f09153a85e..b87979c3a76bcb27d0f6d4376054385edad7d7cf 100644 (file)
@@ -2129,8 +2129,7 @@ Validate_Config(bool Configtest, bool Rehash)
        if (!Conf_ServerName[0] || !strchr(Conf_ServerName, '.')) {
                config_valid = false;
                Config_Error(LOG_ALERT,
-                            "No (valid) server name configured in \"%s\" (section 'Global': 'Name')!",
-                            NGIRCd_ConfFile);
+                            "No (valid) server name configured (section 'Global': 'Name')!");
                if (!Configtest && !Rehash) {
                        Config_Error(LOG_ALERT,
                                     "%s exiting due to fatal errors!",
@@ -2144,8 +2143,7 @@ Validate_Config(bool Configtest, bool Rehash)
                /* No administrative contact configured! */
                config_valid = false;
                Config_Error(LOG_ALERT,
-                            "No administrator email address configured in \"%s\" ('AdminEMail')!",
-                            NGIRCd_ConfFile);
+                            "No administrator email address configured ('AdminEMail')!");
                if (!Configtest) {
                        Config_Error(LOG_ALERT,
                                     "%s exiting due to fatal errors!",