Mercurial > pidgin.yaz
diff src/protocols/msn/msn.c @ 3001:87fff45fa36b
[gaim-migrate @ 3014]
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.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 04 Mar 2002 04:18:02 +0000 |
parents | 7239a392486c |
children | 08327a2f25aa |
line wrap: on
line diff
--- a/src/protocols/msn/msn.c Mon Mar 04 03:04:49 2002 +0000 +++ b/src/protocols/msn/msn.c Mon Mar 04 04:18:02 2002 +0000 @@ -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),