Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
4070:6efe00ee7de8 | 4071:2532f1192da3 |
---|---|
105 | 105 |
106 snac.family = aimbs_get16(&rx->data); | 106 snac.family = aimbs_get16(&rx->data); |
107 snac.subtype = aimbs_get16(&rx->data); | 107 snac.subtype = aimbs_get16(&rx->data); |
108 snac.flags = aimbs_get16(&rx->data); | 108 snac.flags = aimbs_get16(&rx->data); |
109 snac.id = aimbs_get32(&rx->data); | 109 snac.id = aimbs_get32(&rx->data); |
110 | |
111 /* SNAC flags are apparently uniform across all SNACs, so we handle them here */ | |
112 if (snac.flags & 0x8000) { | |
113 /* This contains the version of the family that this SNAC is in. | |
114 * You get this when your SSI module is version 2 or higher. | |
115 * For now we have no need for this, but you could always save | |
116 * it as a part of aim_modnsac_t, or something. The format is... | |
117 * 2 byte length of total mini-header, then TLV of type 0x0001, | |
118 * length 0x0002, value is the 2 byte version number */ | |
119 aim_bstream_advance(&rx->data, aimbs_get16(&rx->data)); | |
120 } | |
110 | 121 |
111 for (cur = (aim_module_t *)sess->modlistv; cur; cur = cur->next) { | 122 for (cur = (aim_module_t *)sess->modlistv; cur; cur = cur->next) { |
112 | 123 |
113 if (!(cur->flags & AIM_MODFLAG_MULTIFAMILY) && | 124 if (!(cur->flags & AIM_MODFLAG_MULTIFAMILY) && |
114 (cur->family != snac.family)) | 125 (cur->family != snac.family)) |