use xtell for talking to handles, but tell for talking into a channel.
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 22 Nov 2009 20:29:47 +0000 (12:29 -0800)
committerArun Persaud <arun@nubati.net>
Sun, 22 Nov 2009 20:31:16 +0000 (12:31 -0800)
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

index 4b7edbc..fbf3e15 100644 (file)
@@ -180,8 +180,9 @@ 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
            break;\r