X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwchat.c;h=fbf3e15d1a803d1845817a92ccdf1846e7cb1c40;hb=dccfb62c4361cdf6ff386d6edcb53c5d432d581a;hp=a2b0825f53b521a01408fd0fc4b0cec9c91f8fd7;hpb=6afb32edb25533127a2ed3cc569516cfb752fea6;p=xboard.git 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;