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:29:47 +0000 (12:29 -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 a2b0825..fbf3e15 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
@@ -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