X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Finspircd_namedpipe.cpp;h=93d7c423a1cbeb7690bebbf8674b7e9d23e72fd4;hb=810c662c9b55908101ca085293c52c3239ef22d1;hp=a460f41a2b9d0627f4996dde3ca8793e715215ad;hpb=4608413eb87259fa1f563c0aab5262b51154662c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/inspircd_namedpipe.cpp b/win/inspircd_namedpipe.cpp index a460f41a2..93d7c423a 100644 --- a/win/inspircd_namedpipe.cpp +++ b/win/inspircd_namedpipe.cpp @@ -131,7 +131,7 @@ IPC::IPC(InspIRCd* Srv) : ServerInstance(Srv) { /* The IPC pipe is threaded */ thread = new IPCThread(Srv); - Srv->Threads->Create(thread); + Srv->Threads->Start(thread); } void IPC::Check() @@ -161,6 +161,12 @@ void IPC::Check() thread->ClearStatus(); ServerInstance->Restart("Restarting due to command from GUI"); break; + case '4': + /* Toggle debug */ + thread->SetResult(0); + thread->ClearStatus(); + ServerInstance->Config->forcedebug = !ServerInstance->Config->forcedebug; + break; } }