Prevent FICS bell character fro printing in ICS Console XB
[xboard.git] / dialogs.c
index 189a869..45acd30 100644 (file)
--- a/dialogs.c
+++ b/dialogs.c
@@ -557,6 +557,7 @@ Pick (int n)
        appData.pieceToCharTable = NULL;
        appData.pieceNickNames = "";
        appData.colorNickNames = "";
+       appData.men = "";
         PopDown(TransientDlg);
        Reset(True, True);
         return;
@@ -2119,6 +2120,10 @@ void
 ConsoleWrite(char *message, int count)
 {
     if(shellUp[ChatDlg] && chatOptions[CHAT_ICS].type != Skip) { // in Xaw this is a no-op
+       if(*message == 7) {
+           message++; // remove bell
+           if(strcmp(message, "\n")) return;
+       }
        AppendColorized(&chatOptions[CHAT_ICS], message, count);
        SetInsertPos(&chatOptions[CHAT_ICS], 999999);
     }
@@ -2554,7 +2559,7 @@ DisplayHelp (char *name)
        } else textPtr = NULL;   // use plaintext man file directly
        GetHelpText(f, name);
        fclose(f);
-    }
+    } else if(currentCps) DisplayNote("No manual is installed for this engine");
 }
 
 #define PAUSE_BUTTON "P"