From 762c39eb0da76ea47b45bf79fd86fc160c95aab7 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 22 May 2016 19:42:42 +0200 Subject: [PATCH] Windows: when UnrealIRCd fails to start due to a configuration error apparently some users didn't read and close the error screen. Instead they hit the "rehash" command from the sytem tray and this would crash UnrealIRCd. From now on if you do that a messagebox will show up saying you should pay attention to the error screen ;) --- src/win32/gui.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/win32/gui.c b/src/win32/gui.c index 18a13a07e..b63e7d6e7 100644 --- a/src/win32/gui.c +++ b/src/win32/gui.c @@ -561,6 +561,13 @@ LRESULT CALLBACK MainDLG(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) return FALSE; } + if (!loop.ircd_booted) + { + MessageBox(NULL, "UnrealIRCd not booted due to configuration errors. " + "Check other window for error details. Then close that window, " + "fix the errors and start UnrealIRCd again."); + return FALSE; + } switch(LOWORD(wParam)) { case IDM_STATUS: