From fa850bedca486652c6fbd5821ec6dbeed684ae65 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 2 Feb 2015 16:29:22 +0100 Subject: [PATCH] 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'. --- dialogs.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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 -- 1.7.0.4