From: H.G. Muller Date: Sun, 22 Nov 2009 20:29:47 +0000 (-0800) Subject: use xtell for talking to handles, but tell for talking into a channel. X-Git-Tag: v4.4.2.20091122~2 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=dccfb62c4361cdf6ff386d6edcb53c5d432d581a use xtell for talking to handles, but tell for talking into a channel. by changing the chatboxes to use xtell in stead of tell, we broke the possibility to use the chat-box for chatting into a channel (which is apparently not possible with xtell). --- diff --git a/winboard/wchat.c b/winboard/wchat.c index a2b0825..fbf3e15 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -32,8 +32,8 @@ #include #include "common.h" -#include "winboard.h" #include "frontend.h" +#include "winboard.h" #include "backend.h" #include "wsnap.h" @@ -180,8 +180,9 @@ LRESULT CALLBACK ChatProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam if(!atoi(chatPartner[partner])) { sprintf(buf, "> %s\n", mess); // echo only tells to handle, not channel InsertIntoMemo(hDlg, buf); - } sprintf(buf, "xtell %s %s\n", chatPartner[partner], mess); + } else + sprintf(buf, "tell %s %s\n", chatPartner[partner], mess); } SendToICS(buf); break;