Mercurial > pidgin.yaz
comparison libpurple/protocols/qq/group_info.c @ 24073:df699d739b8f
2008.10.03 - ccpaging <ccpaging(at)gmail.com>
* 2007 protocol:
1. fixed 'get room info'
2. fixed 'get buddy level'
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 14:46:44 +0000 |
parents | dbc7a9742f8d |
children | c2253c485728 |
comparison
equal
deleted
inserted
replaced
24072:efd4a0e6dd86 | 24073:df699d739b8f |
---|---|
154 gchar *topic_utf8; | 154 gchar *topic_utf8; |
155 | 155 |
156 g_return_if_fail(data != NULL && data_len > 0); | 156 g_return_if_fail(data != NULL && data_len > 0); |
157 qd = (qq_data *) gc->proto_data; | 157 qd = (qq_data *) gc->proto_data; |
158 | 158 |
159 /* qq_show_packet("Room Info", data, data_len); */ | |
160 | |
159 bytes = 0; | 161 bytes = 0; |
160 bytes += qq_get32(&id, data + bytes); | 162 bytes += qq_get32(&id, data + bytes); |
161 g_return_if_fail(id > 0); | 163 g_return_if_fail(id > 0); |
162 | 164 |
163 bytes += qq_get32(&ext_id, data + bytes); | 165 bytes += qq_get32(&ext_id, data + bytes); |
187 * qunDestLen(qunDestcontent)) */ | 189 * qunDestLen(qunDestcontent)) */ |
188 bytes += qq_get8(&unknown1, data + bytes); | 190 bytes += qq_get8(&unknown1, data + bytes); |
189 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", |
190 group->type8, group->creator_uid, group->category, max_members); | 192 group->type8, group->creator_uid, group->category, max_members); |
191 | 193 |
194 /* skip 7 bytes unknow in qq2007 0x(00 00 01 00 00 00 fc)*/ | |
195 bytes += 7; | |
196 | |
197 /* qq_show_packet("Room Info", data + bytes, data_len - bytes); */ | |
192 /* strlen + <str content> */ | 198 /* strlen + <str content> */ |
193 bytes += convert_as_pascal_string(data + bytes, &(group->title_utf8), QQ_CHARSET_DEFAULT); | 199 bytes += convert_as_pascal_string(data + bytes, &(group->title_utf8), QQ_CHARSET_DEFAULT); |
194 bytes += qq_get16(&unknown, data + bytes); /* 0x0000 */ | 200 bytes += qq_get16(&unknown, data + bytes); /* 0x0000 */ |
195 bytes += convert_as_pascal_string(data + bytes, ¬ice, QQ_CHARSET_DEFAULT); | 201 bytes += convert_as_pascal_string(data + bytes, ¬ice, QQ_CHARSET_DEFAULT); |
196 bytes += convert_as_pascal_string(data + bytes, &(group->desc_utf8), QQ_CHARSET_DEFAULT); | 202 bytes += convert_as_pascal_string(data + bytes, &(group->desc_utf8), QQ_CHARSET_DEFAULT); |