comparison src/protocols/oscar/ssi.c @ 4303:22ebfa41525a

[gaim-migrate @ 4557] This fixes a bug when moving buddies around within a group. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 12 Jan 2003 00:02:45 +0000
parents 78a3d2caf84c
children b3a14484fc2f
comparison
equal deleted inserted replaced
4302:bc125db09cd0 4303:22ebfa41525a
1132 fu8_t fmtver; /* guess */ 1132 fu8_t fmtver; /* guess */
1133 fu16_t namelen, gid, bid, type; 1133 fu16_t namelen, gid, bid, type;
1134 char *name; 1134 char *name;
1135 aim_tlvlist_t *data; 1135 aim_tlvlist_t *data;
1136 1136
1137 if (snac->flags & 0x0001) {
1138 /* XXX - Free all ssi data? */
1139 }
1140
1141 fmtver = aimbs_get8(bs); /* Version of ssi data. Should be 0x00 */ 1137 fmtver = aimbs_get8(bs); /* Version of ssi data. Should be 0x00 */
1142 sess->ssi.numitems += aimbs_get16(bs); /* # of items in this SSI SNAC */ 1138 sess->ssi.numitems += aimbs_get16(bs); /* # of items in this SSI SNAC */
1143 1139
1144 /* Read in the list */ 1140 /* Read in the list */
1145 while (aim_bstream_empty(bs) > 4) { /* last four bytes are timestamp */ 1141 while (aim_bstream_empty(bs) > 4) { /* last four bytes are timestamp */
1157 } 1153 }
1158 1154
1159 /* Read in the timestamp */ 1155 /* Read in the timestamp */
1160 sess->ssi.timestamp = aimbs_get32(bs); 1156 sess->ssi.timestamp = aimbs_get32(bs);
1161 1157
1162 if (!(snac->flags & 0x0001)) { 1158 if (snac->flags ^ 0x0001) {
1163 /* Make a copy of the list */ 1159 /* Make a copy of the list */
1164 struct aim_ssi_item *cur; 1160 struct aim_ssi_item *cur;
1165 for (cur=sess->ssi.official; cur; cur=cur->next) 1161 for (cur=sess->ssi.official; cur; cur=cur->next)
1166 aim_ssi_itemlist_add(&sess->ssi.local, cur->name, cur->gid, cur->bid, cur->type, cur->data); 1162 aim_ssi_itemlist_add(&sess->ssi.local, cur->name, cur->gid, cur->bid, cur->type, cur->data);
1167 1163