diff src/protocols/oscar/service.c @ 6101:e4a5085fb870

[gaim-migrate @ 6560] This should fix some icon uploading looping. Sean, the problem was that, when adding the md5 sum to ssi, the code was checking if it existed by looking for an item named "0", but it was actually adding an item named "1." So for accounts with no icon info yet, Gaim would end up getting in a loop and spiraling into oblivion, only far less dramatic. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 12 Jul 2003 19:08:19 +0000
parents 1bebb8345bde
children af8ac078d4c2
line wrap: on
line diff
--- a/src/protocols/oscar/service.c	Sat Jul 12 17:38:06 2003 +0000
+++ b/src/protocols/oscar/service.c	Sat Jul 12 19:08:19 2003 +0000
@@ -1016,12 +1016,13 @@
 	if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) {
 		switch (type) {
 		case 0x0000:
-		case 0x0001: { /* not sure what the difference between 1 and 0 is */
+		case 0x0001: { /* buddy icon checksum */
+			/* not sure what the difference between 1 and 0 is */
 			fu8_t *md5 = aimbs_getraw(bs, length);
 			ret = userfunc(sess, rx, type, flags, length, md5);
 			free(md5);
 			} break;
-		case 0x0002: {
+		case 0x0002: { /* available message */
 			/* there is a second length that is just for the message */
 			char *msg = aimbs_getstr(bs, aimbs_get16(bs));
 			ret = userfunc(sess, rx, msg);