]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configreader.cpp
Move all of the xline stuff into class XLineManager, make an instance of it in class...
[user/henk/code/inspircd.git] / src / configreader.cpp
index 0f9fbfc7f82a3348d21f8d890a2743c9ccab757e..b57de169214fb9d2ad672b30ed6bc5925cba07f7 100644 (file)
 #include "userprocess.h"
 #include "xline.h"
 
-extern time_t TIME;
-
-using irc::sockets::BindPorts;
-
 std::vector<std::string> old_module_names, new_module_names, added_modules, removed_modules;
 
 ServerConfig::ServerConfig(InspIRCd* Instance) : ServerInstance(Instance)
@@ -796,7 +792,7 @@ void ServerConfig::Read(bool bail, userrec* user)
         */
        if (!bail)
        {
-               ServerInstance->stats->BoundPortCount = BindPorts(false);
+               ServerInstance->stats->BoundPortCount = ServerInstance->BindPorts(false);
 
                if (!removed_modules.empty())
                        for (std::vector<std::string>::iterator removing = removed_modules.begin(); removing != removed_modules.end(); removing++)
@@ -1428,4 +1424,8 @@ std::string ServerConfig::GetFullProgDir(char** argv, int argc)
        return otherdir;
 }
 
+InspIRCd* ServerConfig::GetInstance()
+{
+       return ServerInstance;
+}