X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwchat.c;h=363bebdf9800026997bd2cda103711419425d7bf;hb=d138c95b1f4dad365548a9d77321f626ef704c90;hp=a837a86dc31156b4f807ed3dc648607152abde6f;hpb=5f05bf2e58fab151886184643c75f9d9b677b0a3;p=xboard.git diff --git a/winboard/wchat.c b/winboard/wchat.c index a837a86..363bebd 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" @@ -47,7 +47,6 @@ void ChatPopUp(); void ChatPopDown(); /* Imports from backend.c */ -char * SavePart(char *str); extern int opponentKibitzes; /* Imports from winboard.c */ @@ -99,9 +98,7 @@ static void ResizeWindowControls( HWND hDlg ) int clientHeight; int maxControlWidth; int buttonWidth, buttonHeight; -#if 0 -} -#else + /* Initialize variables */ GetClientRect( hDlg, &rc ); @@ -121,7 +118,6 @@ static void ResizeWindowControls( HWND hDlg ) // InvalidateRect( GetDlgItem(hDlg,IDC_EngineMemo1), NULL, FALSE ); // InvalidateRect( GetDlgItem(hDlg,IDC_EngineMemo2), NULL, FALSE ); } -#endif // front end. Actual printing of PV lines into the output field static void InsertIntoMemo( HANDLE hDlg, char * text ) @@ -183,7 +179,8 @@ 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);