Mercurial > pidgin
comparison libpurple/protocols/qq/group.c @ 24154:237e5a94e11c
2008.10.08 - ccpaging <ccpaging(at)gmail.com>
* Update group part
* Delete some meaningless functions and data
* Added 'change my icon'
2008.10.08 - lonicerae <lonicerae(at)gmail.com>
* Merge 20081008 patch into trunk
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 15:08:30 +0000 |
parents | bdfcfd71449c |
children | 3c52353b83ae |
comparison
equal
deleted
inserted
replaced
24153:340fc40fe4ef | 24154:237e5a94e11c |
---|---|
39 static void _qq_group_search_callback(PurpleConnection *gc, const gchar *input) | 39 static void _qq_group_search_callback(PurpleConnection *gc, const gchar *input) |
40 { | 40 { |
41 guint32 ext_id; | 41 guint32 ext_id; |
42 | 42 |
43 g_return_if_fail(input != NULL); | 43 g_return_if_fail(input != NULL); |
44 ext_id = qq_string_to_dec_value(input); | 44 ext_id = strtol(input, NULL, 10); |
45 /* 0x00000000 means search for demo group */ | 45 /* 0x00000000 means search for demo group */ |
46 qq_send_cmd_group_search_group(gc, ext_id); | 46 qq_request_room_search(gc, ext_id, QQ_ROOM_SEARCH_ONLY); |
47 } | 47 } |
48 | 48 |
49 static void _qq_group_search_cancel_callback(PurpleConnection *gc, const gchar *input) | 49 static void _qq_group_search_cancel_callback(PurpleConnection *gc, const gchar *input) |
50 { | 50 { |
51 qq_data *qd; | 51 qq_data *qd; |
153 qq_group *group; | 153 qq_group *group; |
154 gint count; | 154 gint count; |
155 | 155 |
156 account = purple_connection_get_account(gc); | 156 account = purple_connection_get_account(gc); |
157 | 157 |
158 purple_debug_info("QQ", "Initial QQ Qun configurations\n"); | |
158 purple_group = purple_find_group(PURPLE_GROUP_QQ_QUN); | 159 purple_group = purple_find_group(PURPLE_GROUP_QQ_QUN); |
159 if (purple_group == NULL) { | 160 if (purple_group == NULL) { |
160 purple_debug_info("QQ", "We have no QQ Qun\n"); | 161 purple_debug_info("QQ", "We have no QQ Qun\n"); |
161 return; | 162 return; |
162 } | 163 } |
168 } | 169 } |
169 /* got one */ | 170 /* got one */ |
170 chat = (PurpleChat *) node; | 171 chat = (PurpleChat *) node; |
171 if (account != chat->account) /* not qq account*/ | 172 if (account != chat->account) /* not qq account*/ |
172 continue; | 173 continue; |
173 group = qq_room_create_by_hashtable(gc, chat->components); | 174 group = qq_room_data_new_by_hashtable(gc, chat->components); |
174 if (group == NULL) | 175 if (group == NULL) |
175 continue; | 176 continue; |
176 | 177 |
177 if (group->id <= 0) | 178 if (group->id <= 0) |
178 continue; | 179 continue; |