Mercurial > pidgin
diff libpurple/protocols/qq/group_info.c @ 24142: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 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/group_info.c Wed Oct 22 14:45:26 2008 +0000 +++ b/libpurple/protocols/qq/group_info.c Wed Oct 22 14:46:44 2008 +0000 @@ -156,6 +156,8 @@ g_return_if_fail(data != NULL && data_len > 0); qd = (qq_data *) gc->proto_data; + /* qq_show_packet("Room Info", data, data_len); */ + bytes = 0; bytes += qq_get32(&id, data + bytes); g_return_if_fail(id > 0); @@ -189,6 +191,10 @@ purple_debug_info("QQ", "type=%u creatorid=%u category=%u maxmembers=%u\n", group->type8, group->creator_uid, group->category, max_members); + /* skip 7 bytes unknow in qq2007 0x(00 00 01 00 00 00 fc)*/ + bytes += 7; + + /* qq_show_packet("Room Info", data + bytes, data_len - bytes); */ /* strlen + <str content> */ bytes += convert_as_pascal_string(data + bytes, &(group->title_utf8), QQ_CHARSET_DEFAULT); bytes += qq_get16(&unknown, data + bytes); /* 0x0000 */