]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove a load of unneeded debugging output
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 4 Apr 2006 14:29:02 +0000 (14:29 +0000)
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 4 Apr 2006 14:29:02 +0000 (14:29 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3828 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd_io.cpp

index 50b4c8d8e145a0c13781b7acf0d0f1c7535885ba..84af4bd1650751c129864288ebef236ec340467d 100644 (file)
@@ -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;
                
                /* 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++)
                {
                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 << "[" << 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 << "\t" << j->first << " = " << j->second << std::endl;
-                       }
                        
                        std::cout << "[/" << i->first << " " << c << "/" << this->config_data.count(i->first) << "]" << 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());
        else
        {
                log(DEFAULT, "There were errors in your configuration:\n%s", errstr.str().c_str());