Logout from ICS after fatal error
[xboard.git] / dialogs.c
index 6380b77..5eb3687 100644 (file)
--- a/dialogs.c
+++ b/dialogs.c
@@ -2364,6 +2364,7 @@ DisplayFatalError (String message, int error, int status)
     }
     if(mainOptions[W_BOARD].handle) {
        if (appData.popupExitMessage) {
+           if(appData.icsActive) SendToICS("logout\n"); // [HGM] make sure no new games will be started
            ErrorPopUp(status ? _("Fatal Error") : _("Exiting"), message, TRUE);
        } else {
            ExitEvent(status);