]> arthur.barton.de Git - ngircd.git/blobdiff - src/ngircd/conf.c
Correctly show the configuration file used
[ngircd.git] / src / ngircd / conf.c
index eaa5e932494a0697e9b7bcfe9ca713f09153a85e..9c8a4de6d1cc15c14adadc5d057d37cd71192a66 100644 (file)
@@ -942,8 +942,7 @@ Read_Config(bool TestOnly, bool IsStarting)
 
        if (TestOnly && fd)
                Config_Error(LOG_INFO,
-                            "Reading configuration from \"%s\" ...",
-                            NGIRCd_ConfFile );
+                            "Reading configuration from \"%s\" ...", ptr);
 
        /* Clean up server configuration structure: mark all already
         * configured servers as "once" so that they are deleted
@@ -2129,8 +2128,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 +2142,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!",