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: master-20091122~2 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=585dbd5f9edbf64775568e3f986e63969d15f912 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 4b7edbc..fbf3e15 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -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;