# HG changeset patch # User Rob Flynn # Date 993592389 0 # Node ID caba1f59801ed7eb2601792086635ab2c3e16692 # Parent f82299f8fbc833ff0761d3db5711aa2bf2fdfb18 [gaim-migrate @ 2072] What's up. Nothing to see here, move right along. :) committer: Tailor Script diff -r f82299f8fbc8 -r caba1f59801e ChangeLog --- a/ChangeLog Wed Jun 20 21:11:24 2001 +0000 +++ b/ChangeLog Tue Jun 26 21:53:09 2001 +0000 @@ -1,5 +1,8 @@ GAIM: The Pimpin' Penguin IM Clone thats good for the soul! +version 0.11.0-pre15: + * MSN works again + version 0.11.0-pre14 (06/17/2001): * Fixed a segfault with Oscar's account confirmation (Thanks, Adam) diff -r f82299f8fbc8 -r caba1f59801e plugins/msn/msn.c --- a/plugins/msn/msn.c Wed Jun 20 21:11:24 2001 +0000 +++ b/plugins/msn/msn.c Tue Jun 26 21:53:09 2001 +0000 @@ -636,6 +636,36 @@ } else if (!g_strncasecmp(buf, "BLP", 3)) { } else if (!g_strncasecmp(buf, "BPR", 3)) { } else if (!g_strncasecmp(buf, "CHG", 3)) { + } else if (!g_strncasecmp(buf, "CHL", 3)) { + char *hash = buf; + char buf2[MSN_BUF_LEN]; + md5_state_t st; + md5_byte_t di[16]; + int i; + + GET_NEXT(hash); + GET_NEXT(hash); + + md5_init(&st); + + printf("Hashing: %s\n", hash); + md5_append(&st, (const md5_byte_t *)hash, strlen(hash)); + md5_append(&st, (const md5_byte_t *)"Q1P7W2E4J9R8U3S5", strlen("Q1P7W2E4J9R8U3S5")); + md5_finish(&st, di); + + g_snprintf(buf, sizeof(buf), "QRY %d msmsgs@msnmsgr.com 32\r\n", ++md->trId); + for (i = 0; i < 16; i++) { + g_snprintf(buf2, sizeof(buf2), "%02x", di[i]); + strcat(buf, buf2); + } + + if (msn_write(md->fd, buf, strlen(buf)) < 0) { + printf("Couldnt write it"); + return; + } + + debug_printf("\n"); + } else if (!g_strncasecmp(buf, "FLN", 3)) { char *usr = buf; @@ -786,6 +816,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, "QRY", 3)) { } else if (!g_strncasecmp(buf, "REM", 3)) { } else if (!g_strncasecmp(buf, "RNG", 3)) { struct msn_switchboard *ms;