Add dialog box. That should be the last change for 3.2.10.6. I hope.

This commit is contained in:
Bram Matthys 2015-12-11 10:32:54 +01:00
parent 059605c341
commit f72a982a82
2 changed files with 8 additions and 1 deletions
src

View file

@ -1543,7 +1543,7 @@ int InitwIRCD(int argc, char *argv[])
fprintf(stderr,
"---------------------------------------------------------------------\n");
#endif
if (time(NULL) > 1477954800)
if (time(NULL) > 1459461600)
{
fprintf(stderr, "WARNING: UnrealIRCd 3.2.x is no longer supported after December 31, 2016.\n"
"See https://www.unrealircd.org/docs/UnrealIRCd_3.2.x_deprecated\n");

View file

@ -279,6 +279,13 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
}
ShowWindow(hWnd, SW_SHOW);
hMainThread = (HANDLE)_beginthread(SocketLoop, 0, NULL);
if (TStime() > 1459461600)
{
MessageBox(NULL, "UnrealIRCd 3.2.x is no longer supported after December 31, 2016. "
"You should upgrade to UnrealIRCd 4. "
"See https://www.unrealircd.org/docs/UnrealIRCd_3.2.x_deprecated",
"UnrealIRCd 3.2.x is deprecated", MB_OK);
}
while (GetMessage(&msg, NULL, 0, 0))
{
if (!IsWindow(hStatusWnd) || !IsDialogMessage(hStatusWnd, &msg))