]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_namedpipe.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / win / inspircd_namedpipe.cpp
index bd2daf53ec90cfc9dfa4c2f108021e349ad083dc..95c0ae5783fc204a41b234d4ad9b6f174906186a 100644 (file)
@@ -6,7 +6,7 @@
 #include <psapi.h>\r
 \r
 \r
-IPCThread::IPCThread(InspIRCd* Instance) : Thread(), ServerInstance(Instance)\r
+IPCThread::IPCThread()\r
 {\r
        if (!initwmi())\r
                ServerInstance->Logs->Log("IPC", DEBUG, "Could not initialise WMI. CPU percantage reports will not be available.");\r
@@ -127,11 +127,11 @@ void IPCThread::SetResult(int newresult)
 }\r
 \r
 \r
-IPC::IPC(InspIRCd* Srv) : ServerInstance(Srv)\r
+IPC::IPC()\r
 {\r
        /* The IPC pipe is threaded */\r
        thread = new IPCThread(Srv);\r
-       Srv->Threads->Create(thread);\r
+       Srv->Threads->Start(thread);\r
 }\r
 \r
 void IPC::Check()\r
@@ -165,7 +165,7 @@ void IPC::Check()
                        /* Toggle debug */\r
                        thread->SetResult(0);\r
                        thread->ClearStatus();\r
-                       Config->forcedebug = !Config->forcedebug;\r
+                       ServerInstance->Config->forcedebug = !ServerInstance->Config->forcedebug;\r
                break;\r
        }\r
 }\r