From 078f72c1abbd51aaac3ddc32cb79b08bfc6e43c2 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 8 Dec 2019 22:27:45 +0000 Subject: Initialise Winsock from inside the socket engine. --- src/inspircd.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 3c11cc82e..95ddca394 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -441,12 +441,6 @@ InspIRCd::InspIRCd(int argc, char** argv) Exit(EXIT_STATUS_NOERROR); } -#ifdef _WIN32 - // Set up winsock - WSADATA wsadata; - WSAStartup(MAKEWORD(2,2), &wsadata); -#endif - /* Set the finished argument values */ Config->cmdline.nofork = (do_nofork != 0); Config->cmdline.forcedebug = (do_debug != 0); @@ -470,6 +464,8 @@ InspIRCd::InspIRCd(int argc, char** argv) std::cout << con_green << "InspIRCd - Internet Relay Chat Daemon" << con_reset << std::endl; std::cout << "For contributors & authors: " << con_green << "See /INFO Output" << con_reset << std::endl; + + #ifndef _WIN32 if (!do_root) this->CheckRoot(); -- cgit v1.3.1-10-gc9f91