# HG changeset patch # User Luke Schierer # Date 1094605826 0 # Node ID b15c177895b95f16f42fe07d66507c84b79a35c5 # Parent 269029c55169c4a82c51e801c75d5a65e03460bb [gaim-migrate @ 10875] (21:08:36) nosnilmot: I have a couple of MSN patches that "should" reduce the "error reading from notification server" errors (21:08:52) nosnilmot: those should be pretty straightforward committer: Tailor Script diff -r 269029c55169 -r b15c177895b9 src/protocols/msn/nexus.c --- a/src/protocols/msn/nexus.c Wed Sep 08 00:21:47 2004 +0000 +++ b/src/protocols/msn/nexus.c Wed Sep 08 01:10:26 2004 +0000 @@ -91,6 +91,7 @@ char *username, *password; char *request_str; char *buffer = NULL; + guint32 ctint; size_t s; nexus = data; @@ -105,10 +106,12 @@ password = g_strdup(gaim_url_encode(gaim_account_get_password(session->account))); + ctint = strtoul((char *)g_hash_table_lookup(nexus->challenge_data, "ct"), NULL, 10) + 200; + request_str = g_strdup_printf( "GET %s HTTP/1.1\r\n" "Authorization: Passport1.4 OrgVerb=GET,OrgURL=%s,sign-in=%s,pwd=%s," - "lc=%s,id=%s,tw=%s,fs=%s,ru=%s,ct=%s,kpp=%s,kv=%s,ver=%s,tpf=%s\r\n" + "lc=%s,id=%s,tw=%s,fs=%s,ru=%s,ct=%" G_GUINT32_FORMAT ",kpp=%s,kv=%s,ver=%s,tpf=%s\r\n" "User-Agent: MSMSGS\r\n" "Host: %s\r\n" "Connection: Keep-Alive\r\n" @@ -122,7 +125,7 @@ (char *)g_hash_table_lookup(nexus->challenge_data, "tw"), (char *)g_hash_table_lookup(nexus->challenge_data, "fs"), (char *)g_hash_table_lookup(nexus->challenge_data, "ru"), - (char *)g_hash_table_lookup(nexus->challenge_data, "ct"), + ctint, (char *)g_hash_table_lookup(nexus->challenge_data, "kpp"), (char *)g_hash_table_lookup(nexus->challenge_data, "kv"), (char *)g_hash_table_lookup(nexus->challenge_data, "ver"), diff -r 269029c55169 -r b15c177895b9 src/protocols/msn/notification.c --- a/src/protocols/msn/notification.c Wed Sep 08 00:21:47 2004 +0000 +++ b/src/protocols/msn/notification.c Wed Sep 08 01:10:26 2004 +0000 @@ -1246,7 +1246,7 @@ msn_table_add_cmd(cbs_table, NULL, "URL", url_cmd); - /* msn_table_add_cmd(cbs_table, NULL, "XFR", xfr_cmd); */ + msn_table_add_cmd(cbs_table, NULL, "XFR", xfr_cmd); msn_table_add_error(cbs_table, "ADD", add_error); /* msn_table_add_error(cbs_table, "REA", rea_error); */