Update of /cvsroot/gaim/gaim/src/protocols/msn
In directory usw-pr-cvs1:/tmp/cvs-serv8126/src/protocols/msn
Modified Files:
msn.c
Log Message:
Improved typing notification for Yahoo so that it sends and recieves notification that the user has stopped typing.
Also, combined serv_send_typing and serv_send_typing_stopped... expect the same with serv_got_typing_stopped.
Index: msn.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/msn/msn.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- msn.c 2 Mar 2002 04:52:21 -0000 1.53
+++ msn.c 4 Mar 2002 04:18:02 -0000 1.54
@@ -1484,15 +1484,15 @@
g_free(md);
}
-static int msn_send_typing(struct gaim_connection *gc, char *who) {
+static int msn_send_typing(struct gaim_connection *gc, char *who, int typing) {
struct msn_switchboard *ms = msn_find_switch(gc, who);
char header[MSN_BUF_LEN] = "MIME-Version: 1.0\r\n"
"Content-Type: text/x-msmsgscontrol\r\n"
"User-Agent: Gaim/" VERSION "\r\n"
"TypingUser: ";
char buf [MSN_BUF_LEN];
- if (!ms)
- return;
+ if (!ms || !typing)
+ return 0;
g_snprintf(buf, sizeof(buf), "MSG %d N %d\r\n%s%s\r\n\r\n\r\n",
++ms->trId,
strlen(header) + strlen("\r\n\r\n\r\n") + strlen(gc->username),
|