Mercurial > pidgin
diff src/protocols/msn/msn.c @ 2541:8229710b343b
[gaim-migrate @ 2554]
fun stuff.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 18 Oct 2001 20:56:59 +0000 |
parents | 227cc42ffa6e |
children | 5efa8077107f |
line wrap: on
line diff
--- a/src/protocols/msn/msn.c Thu Oct 18 19:55:19 2001 +0000 +++ b/src/protocols/msn/msn.c Thu Oct 18 20:56:59 2001 +0000 @@ -20,6 +20,8 @@ "User-Agent: Gaim/" VERSION "\r\n" \ "X-MMS-IM-Format: FN=MS%20Sans%20Serif; EF=; CO=0; PF=0\r\n\r\n" +#define HOTMAIL_URL "http://www.hotmail.com/cgi-bin/folders" + #define MSN_ONLINE 1 #define MSN_BUSY 2 #define MSN_IDLE 3 @@ -269,20 +271,20 @@ char *x = strstr(data, "Inbox-Unread:"); if (!x) return; x += strlen("Inbox-Unread: "); - connection_has_mail(gc, atoi(x), NULL, NULL); + connection_has_mail(gc, atoi(x), NULL, NULL, HOTMAIL_URL); } else if (strstr(data, "Content-Type: text/x-msmsgsemailnotification;")) { char *from = strstr(data, "From:"); char *subject = strstr(data, "Subject:"); char *x; if (!from || !subject) { - connection_has_mail(gc, 1, NULL, NULL); + connection_has_mail(gc, 1, NULL, NULL, HOTMAIL_URL); return; } from += strlen("From: "); x = strstr(from, "\r\n"); *x = 0; subject += strlen("Subject: "); x = strstr(subject, "\r\n"); *x = 0; - connection_has_mail(gc, -1, from, subject); + connection_has_mail(gc, -1, from, subject, HOTMAIL_URL); } } @@ -831,6 +833,7 @@ serv_got_update(gc, user, 1, 0, 0, 0, status, 0); } else if (!g_strncasecmp(buf, "OUT", 3)) { } else if (!g_strncasecmp(buf, "PRP", 3)) { + } else if (!g_strncasecmp(buf, "QNG", 3)) { } else if (!g_strncasecmp(buf, "QRY", 3)) { } else if (!g_strncasecmp(buf, "REA", 3)) { char *friend, *tmp = buf; @@ -1438,7 +1441,7 @@ static void msn_do_action(struct gaim_connection *gc, char *act) { if (!strcmp(act, "Set Friendly Name")) { - do_prompt_dialog("Set Friendly Name:", gc, msn_act_id, NULL); + do_prompt_dialog("Set Friendly Name:", gc->displayname, gc, msn_act_id, NULL); } }