X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=af11b492de37225079210fcac79fc46bc3573e13;hb=84fa2420dd1ef644ed41ab4d46aa62e02365a5ba;hp=d0c372a9c49a5253f77e48a320c9e974175787d7;hpb=5297eb5a91178cf9a403da89709a4661efde0210;p=xboard.git diff --git a/dialogs.c b/dialogs.c index d0c372a..af11b49 100644 --- a/dialogs.c +++ b/dialogs.c @@ -2523,12 +2523,12 @@ DisplayMoveError (String message) void DisplayFatalError (String message, int error, int status) { - char buf[MSG_SIZ]; + char buf[MSG_SIZ], logout = appData.icsActive; if(status == 666) { // ignore this error when ICS Console window is up if(shellUp[ChatDlg]) return; status = 0; - } + } else if(status == 6666) status = logout = 0; // 6666 = kludge that indicates ICS connection already closed errorExitStatus = status; if (error == 0) { @@ -2541,7 +2541,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 + if(logout) SendToICS("logout\n"); // [HGM] make sure no new games will be started ErrorPopUp(status ? _("Fatal Error") : _("Exiting"), message, TRUE); } else { ExitEvent(status);