From fa82184d9c819fff5c188f66f7814e28e1e32fe3 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Thu, 20 Nov 2008 02:06:20 +0000 Subject: Removed old example.conf and replaced with example_new.conf, services.conf will now be read by the new parser and not services_new.conf git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1764 5417fbe8-f217-4b02-8779-1006273d7864 --- src/config.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/config.c b/src/config.c index 036144553..31c4f0e5a 100644 --- a/src/config.c +++ b/src/config.c @@ -20,9 +20,6 @@ ServerConfig serverConfig; -// This is temporary while directives are transitioned from the old config to the new one -- CyberBotX -static const char *SERVICES_CONF_NEW = "services_new.conf"; - /* Configurable variables: */ char *IRCDModule; @@ -852,15 +849,15 @@ int ServerConfig::Read(bool bail) // Load and parse the config file, if there are any errors then explode // Make a copy here so if it fails then we can carry on running with an unaffected config newconfig.clear(); - if (LoadConf(newconfig, SERVICES_CONF_NEW, errstr)) { - // If we succeeded, set the ircd config to the new one + if (LoadConf(newconfig, SERVICES_CONF, errstr)) { + // If we succeeded, set the config to the new one config_data = newconfig; } else { ReportConfigError(errstr.str(), bail); return 0; } - // The stuff in here may throw CoreException, be sure we're in a position to catch it. + // The stuff in here may throw ConfigException, be sure we're in a position to catch it. try { // Read the values of all the tags which occur once or not at all, and call their callbacks. for (int Index = 0; Values[Index].tag; ++Index) { -- cgit