comparison libpurple/protocols/qq/buddy_list.c @ 24135:dbc7a9742f8d

2008.09.26 - ccpaging <ccpaging(at)gmail.com> * Added 'Request/Add/Remove Buddy' functions
author SHiNE CsyFeK <csyfek@gmail.com>
date Wed, 22 Oct 2008 14:35:05 +0000
parents bdfcfd71449c
children 87e61a85f5dd
comparison
equal deleted inserted replaced
24134:bdfcfd71449c 24135:dbc7a9742f8d
136 bytes += qq_get16(&bs->port, data + bytes); 136 bytes += qq_get16(&bs->port, data + bytes);
137 /* 011-011: 0x00 */ 137 /* 011-011: 0x00 */
138 bytes += qq_get8(&bs->unknown2, data + bytes); 138 bytes += qq_get8(&bs->unknown2, data + bytes);
139 /* 012-012: status */ 139 /* 012-012: status */
140 bytes += qq_get8(&bs->status, data + bytes); 140 bytes += qq_get8(&bs->status, data + bytes);
141 /* 013-014: client_version */ 141 /* 013-014: client tag */
142 bytes += qq_get16(&bs->unknown3, data + bytes); 142 bytes += qq_get16(&bs->unknown3, data + bytes);
143 /* 015-030: unknown key */ 143 /* 015-030: unknown key */
144 bytes += qq_getdata(&(bs->unknown_key[0]), QQ_KEY_LENGTH, data + bytes); 144 bytes += qq_getdata(&(bs->unknown_key[0]), QQ_KEY_LENGTH, data + bytes);
145 145
146 purple_debug_info("QQ_STATUS", 146 purple_debug_info("QQ_STATUS",
205 continue; 205 continue;
206 } /* check if it is a valid entry */ 206 } /* check if it is a valid entry */
207 207
208 if (bo.bs.uid == qd->uid) { 208 if (bo.bs.uid == qd->uid) {
209 purple_debug_warning("QQ", "I am in online list %d\n", bo.bs.uid); 209 purple_debug_warning("QQ", "I am in online list %d\n", bo.bs.uid);
210 continue;
211 } 210 }
212 211
213 /* update buddy information */ 212 /* update buddy information */
214 purple_name = uid_to_purple_name(bo.bs.uid); 213 purple_name = uid_to_purple_name(bo.bs.uid);
215 if (purple_name == NULL) { 214 if (purple_name == NULL) {
226 "Got an online buddy %d, but not in my buddy list\n", bo.bs.uid); 225 "Got an online buddy %d, but not in my buddy list\n", bo.bs.uid);
227 continue; 226 continue;
228 } 227 }
229 /* we find one and update qq_buddy */ 228 /* we find one and update qq_buddy */
230 /* 229 /*
231 if(0 != fe->s->client_version) 230 if(0 != fe->s->client_tag)
232 q_bud->client_version = fe->s->client_version; 231 q_bud->client_tag = fe->s->client_tag;
233 */ 232 */
234 q_bud->ip.s_addr = bo.bs.ip.s_addr; 233 q_bud->ip.s_addr = bo.bs.ip.s_addr;
235 q_bud->port = bo.bs.port; 234 q_bud->port = bo.bs.port;
236 q_bud->status = bo.bs.status; 235 q_bud->status = bo.bs.status;
237 q_bud->ext_flag = bo.ext_flag; 236 q_bud->ext_flag = bo.ext_flag;