diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-20 02:06:20 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-20 02:06:20 +0000 |
| commit | fa82184d9c819fff5c188f66f7814e28e1e32fe3 (patch) | |
| tree | 3f40117500287d6a8602fcf7d8241a1ebbe06548 /src | |
| parent | 42fe52c0780ee6ce607f164453c627320525adf9 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.c | 9 |
1 files changed, 3 insertions, 6 deletions
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) { |
