summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 14:29:02 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 14:29:02 +0000
commit6f52f3ec67c2d19483d065f7477854411477ac97 (patch)
treecef331ea44e8dc9c64c4ec90eb032bbb599d8eca
parentc8bfca5fdb7d61153f1bd3e817ba33fc44ec318a (diff)
Remove a load of unneeded debugging output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3828 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd_io.cpp32
1 files changed, 4 insertions, 28 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index 50b4c8d8e..84af4bd16 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -646,46 +646,22 @@ void ServerConfig::Read(bool bail, userrec* user)
/* If we succeeded, set the ircd config to the new one */
Config->config_data = newconfig;
- int c = 1;
+/* int c = 1;
std::string last;
for(ConfigDataHash::const_iterator i = this->config_data.begin(); i != this->config_data.end(); i++)
{
- if(i->first != last)
- c = 1;
- else
- c++;
+ 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;
-
- last = i->first;
}
-
- for(ConfigDataHash::const_iterator i = this->config_data.begin(); i != this->config_data.end(); i++)
- {
- std::cout << "There are " << ConfValueEnum(this->config_data, i->first) << " <" << i->first << "> tags" << std::endl;
-
- for(int j = 0; j < ConfValueEnum(this->config_data, i->first); j++)
- {
- std::string foo;
- if(ConfValue(this->config_data, i->first, "name", j, foo))
- {
- std::cout << "<" << i->first << ":name> " << foo << std::endl;
- }
- else
- {
- std::cout << "<" << i->first << ":name> undef" << std::endl;
- }
- }
- }
- }
+ */ }
else
{
log(DEFAULT, "There were errors in your configuration:\n%s", errstr.str().c_str());