From: H.G.Muller Date: Mon, 2 Feb 2015 15:29:22 +0000 (+0100) Subject: Fix sending of messages from kibitz or c-shout chat X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=fa850bedca486652c6fbd5821ec6dbeed684ae65;hp=98f21f8d29dc5127776a107f8c4c492675c9d6e6;p=xboard.git Fix sending of messages from kibitz or c-shout chat Kibitz messages and c-shouts could be captured in their own chat window. like shouts and whispers, but sending messages from such chats did not get the proper prefixing, but were treated as tells to nonexistent players 'kibitzes' and 'c-shouts'. --- diff --git a/dialogs.c b/dialogs.c index 776c425..63dff6a 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1979,6 +1979,10 @@ ChatOK (int n) snprintf(buf, MSG_SIZ, "whisper %s\n", line); // WHISPER box uses "whisper" to send else if(!strcmp("shouts", chatPartner[activePartner])) snprintf(buf, MSG_SIZ, "shout %s\n", line); // SHOUT box uses "shout" to send + else if(!strcmp("c-shouts", chatPartner[activePartner])) + snprintf(buf, MSG_SIZ, "cshout %s\n", line); // C-SHOUT box uses "cshout" to send + else if(!strcmp("kibitzes", chatPartner[activePartner])) + snprintf(buf, MSG_SIZ, "kibitz %s\n", line); // KIBITZ box uses "kibitz" to send else { if(!atoi(chatPartner[activePartner])) { snprintf(buf, MSG_SIZ, "> %s\n", line); // echo only tells to handle, not channel