diff src/protocols/oscar/rxhandlers.c @ 4071:2532f1192da3

[gaim-migrate @ 4283] So I made all them versions be the likes of winaim 5.1.3036. This includes changing the ssi family/module version from 1 to 3. This caused the SNAC flag 0x8000 to pop up in a few places, so I made a change to rxhandlers.c that should take care of this. This should allow you to add @mac.com buddies to your buddy list, as well as get rid of the PleaseUpgrade000 buddies. It should also reduce your risk of cancer by 5-10%. Hopefully this won't break anything. Everything seems to be ok to me. Baaaaah. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 13 Dec 2002 22:34:14 +0000
parents 07283934dedd
children 858979ab3867
line wrap: on
line diff
--- a/src/protocols/oscar/rxhandlers.c	Fri Dec 13 06:51:17 2002 +0000
+++ b/src/protocols/oscar/rxhandlers.c	Fri Dec 13 22:34:14 2002 +0000
@@ -108,6 +108,17 @@
 	snac.flags = aimbs_get16(&rx->data);
 	snac.id = aimbs_get32(&rx->data);
 
+	/* SNAC flags are apparently uniform across all SNACs, so we handle them here */
+	if (snac.flags & 0x8000) {
+		/* This contains the version of the family that this SNAC is in.  
+		 * You get this when your SSI module is version 2 or higher.  
+		 * For now we have no need for this, but you could always save 
+		 * it as a part of aim_modnsac_t, or something.  The format is...
+		 * 2 byte length of total mini-header, then TLV of  type 0x0001, 
+		 * length 0x0002, value is the 2 byte version number */
+		aim_bstream_advance(&rx->data, aimbs_get16(&rx->data));
+	}
+
 	for (cur = (aim_module_t *)sess->modlistv; cur; cur = cur->next) {
 
 		if (!(cur->flags & AIM_MODFLAG_MULTIFAMILY) &&