Mercurial > pidgin
comparison libpurple/protocols/qq/group_info.c @ 24143:c2253c485728
2008.10.04 - ccpaging <ccpagint(at)gmail.com>
* Update protocol for 2007
* Code cleanup
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 14:47:39 +0000 |
parents | df699d739b8f |
children | a95c7e71064c |
comparison
equal
deleted
inserted
replaced
24142:df699d739b8f | 24143:c2253c485728 |
---|---|
189 * qunDestLen(qunDestcontent)) */ | 189 * qunDestLen(qunDestcontent)) */ |
190 bytes += qq_get8(&unknown1, data + bytes); | 190 bytes += qq_get8(&unknown1, data + bytes); |
191 purple_debug_info("QQ", "type=%u creatorid=%u category=%u maxmembers=%u\n", | 191 purple_debug_info("QQ", "type=%u creatorid=%u category=%u maxmembers=%u\n", |
192 group->type8, group->creator_uid, group->category, max_members); | 192 group->type8, group->creator_uid, group->category, max_members); |
193 | 193 |
194 /* skip 7 bytes unknow in qq2007 0x(00 00 01 00 00 00 fc)*/ | 194 if (qd->client_version >= 2007) { |
195 bytes += 7; | 195 /* skip 7 bytes unknow in qq2007 0x(00 00 01 00 00 00 fc)*/ |
196 | 196 bytes += 7; |
197 } | |
197 /* qq_show_packet("Room Info", data + bytes, data_len - bytes); */ | 198 /* qq_show_packet("Room Info", data + bytes, data_len - bytes); */ |
198 /* strlen + <str content> */ | 199 /* strlen + <str content> */ |
199 bytes += convert_as_pascal_string(data + bytes, &(group->title_utf8), QQ_CHARSET_DEFAULT); | 200 bytes += convert_as_pascal_string(data + bytes, &(group->title_utf8), QQ_CHARSET_DEFAULT); |
200 bytes += qq_get16(&unknown, data + bytes); /* 0x0000 */ | 201 bytes += qq_get16(&unknown, data + bytes); /* 0x0000 */ |
201 bytes += convert_as_pascal_string(data + bytes, ¬ice, QQ_CHARSET_DEFAULT); | 202 bytes += convert_as_pascal_string(data + bytes, ¬ice, QQ_CHARSET_DEFAULT); |
312 qq_buddy *member; | 313 qq_buddy *member; |
313 gchar *nick; | 314 gchar *nick; |
314 | 315 |
315 g_return_if_fail(data != NULL && len > 0); | 316 g_return_if_fail(data != NULL && len > 0); |
316 | 317 |
317 #if 0 | 318 /* qq_show_packet("qq_process_room_cmd_get_buddies", data, len); */ |
318 qq_show_packet("qq_process_room_cmd_get_buddies", data, len); | |
319 #endif | |
320 | 319 |
321 bytes = 0; | 320 bytes = 0; |
322 bytes += qq_get32(&id, data + bytes); | 321 bytes += qq_get32(&id, data + bytes); |
323 g_return_if_fail(id > 0); | 322 g_return_if_fail(id > 0); |
324 | 323 |