#include "userprocess.h"
#include "xline.h"
-extern time_t TIME;
-
-extern int MODCOUNT;
-extern std::vector<Module*> modules;
-extern std::vector<ircd_module*> factory;
-
-using irc::sockets::BindPorts;
-
std::vector<std::string> old_module_names, new_module_names, added_modules, removed_modules;
ServerConfig::ServerConfig(InspIRCd* Instance) : ServerInstance(Instance)
*/
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++)
return otherdir;
}
+InspIRCd* ServerConfig::GetInstance()
+{
+ return ServerInstance;
+}