From dccfb62c4361cdf6ff386d6edcb53c5d432d581a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 22 Nov 2009 12:29:47 -0800 Subject: [PATCH] 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). --- winboard/wchat.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 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; -- 1.7.0.4