Mercurial > pidgin.yaz
diff libpurple/protocols/qq/buddy_list.c @ 24087:147f1b17b6ce
2008.10.08 - ccpaging <ccpaging(at)gmail.com>
* Update 'group' protocol
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Tue, 28 Oct 2008 16:35:06 +0000 |
parents | 237e5a94e11c |
children | 1ee91ff0d5fe |
line wrap: on
line diff
--- a/libpurple/protocols/qq/buddy_list.c Tue Oct 28 16:29:42 2008 +0000 +++ b/libpurple/protocols/qq/buddy_list.c Tue Oct 28 16:35:06 2008 +0000 @@ -252,7 +252,7 @@ } purple_debug_info("QQ", "Received %d online buddies, nextposition=%u\n", - count, (guint) position); + count, (guint) position); return position; } @@ -357,7 +357,7 @@ guint8 sub_cmd, reply_code; guint32 unknown, position; guint32 uid; - guint8 type, groupid; + guint8 type; qq_group *group; g_return_val_if_fail(data != NULL && data_len != 0, -1); @@ -383,12 +383,8 @@ bytes += qq_get32(&uid, data + bytes); /* 04: type 0x1:buddy 0x4:Qun */ bytes += qq_get8(&type, data + bytes); - /* 05: groupid*4 */ /* seems to always be 0 */ - bytes += qq_get8(&groupid, data + bytes); - /* - purple_debug_info("QQ", "groupid: %i\n", groupid); - groupid >>= 2; - */ + /* 05: skip unknow 0x00 */ + bytes += 1; if (uid == 0 || (type != 0x1 && type != 0x4)) { purple_debug_info("QQ", "Buddy entry, uid=%d, type=%d", uid, type); continue;