diff options
-rw-r--r-- | src/configreader.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 81ed63bf2..293cf9964 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -629,24 +629,8 @@ void ServerConfig::Read(bool bail, userrec* user) if (this->LoadConf(newconfig, CONFIG_FILE, errstr)) { /* If we succeeded, set the ircd config to the new one */ - this->config_data = newconfig; - -/* int c = 1; - std::string last; - - for(ConfigDataHash::const_iterator i = this->config_data.begin(); i != this->config_data.end(); i++) - { - c = (i->first != last) ? 1 : c+1; - last = i->first; - - std::cout << "[" << i->first << " " << c << "/" << this->config_data.count(i->first) << "]" << std::endl; - - for(KeyValList::const_iterator j = i->second.begin(); j != i->second.end(); j++) - std::cout << "\t" << j->first << " = " << j->second << std::endl; - - std::cout << "[/" << i->first << " " << c << "/" << this->config_data.count(i->first) << "]" << std::endl; - } - */ } + this->config_data = newconfig; + } else { ServerInstance->Log(DEFAULT, "There were errors in your configuration:\n%s", errstr.str().c_str()); |