Changes needed to compile master branch.
[xboard.git] / winboard / wchat.c
index db9ebf1..363bebd 100644 (file)
@@ -32,8 +32,8 @@
 #include <dlgs.h>\r
 \r
 #include "common.h"\r
-#include "winboard.h"\r
 #include "frontend.h"\r
+#include "winboard.h"\r
 #include "backend.h"\r
 \r
 #include "wsnap.h"\r
@@ -47,7 +47,6 @@ void ChatPopUp();
 void ChatPopDown();\r
 \r
 /* Imports from backend.c */\r
-char * SavePart(char *str);\r
 extern int opponentKibitzes;\r
 \r
 /* Imports from winboard.c */\r
@@ -180,7 +179,8 @@ LRESULT CALLBACK ChatProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam
                if(!atoi(chatPartner[partner])) {\r
                    sprintf(buf, "> %s\n", mess); // echo only tells to handle, not channel\r
                InsertIntoMemo(hDlg, buf);\r
-               }\r
+               sprintf(buf, "xtell %s %s\n", chatPartner[partner], mess);\r
+               } else\r
                sprintf(buf, "tell %s %s\n", chatPartner[partner], mess);\r
            }\r
            SendToICS(buf);\r