X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwchat.c;h=a2b0825f53b521a01408fd0fc4b0cec9c91f8fd7;hb=39c2aae6b7aa87dafe4ed42ecab530bc082bd314;hp=a837a86dc31156b4f807ed3dc648607152abde6f;hpb=5f05bf2e58fab151886184643c75f9d9b677b0a3;p=xboard.git diff --git a/winboard/wchat.c b/winboard/wchat.c index a837a86..a2b0825 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -99,9 +99,7 @@ static void ResizeWindowControls( HWND hDlg ) int clientHeight; int maxControlWidth; int buttonWidth, buttonHeight; -#if 0 -} -#else + /* Initialize variables */ GetClientRect( hDlg, &rc ); @@ -121,7 +119,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 ) @@ -184,7 +181,7 @@ LRESULT CALLBACK ChatProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam sprintf(buf, "> %s\n", mess); // echo only tells to handle, not channel InsertIntoMemo(hDlg, buf); } - sprintf(buf, "tell %s %s\n", chatPartner[partner], mess); + sprintf(buf, "xtell %s %s\n", chatPartner[partner], mess); } SendToICS(buf); break;