| 102 { |
102 { |
| 103 guint32 external_group_id, user_uid; |
103 guint32 external_group_id, user_uid; |
| 104 guint8 group_type; |
104 guint8 group_type; |
| 105 gchar *reason_utf8, *msg, *reason; |
105 gchar *reason_utf8, *msg, *reason; |
| 106 group_member_opt *g; |
106 group_member_opt *g; |
| |
107 gchar *nombre; |
| 107 |
108 |
| 108 g_return_if_fail(internal_group_id > 0 && data != NULL && len > 0); |
109 g_return_if_fail(internal_group_id > 0 && data != NULL && len > 0); |
| 109 |
110 |
| 110 if (*cursor >= (data + len - 1)) { |
111 if (*cursor >= (data + len - 1)) { |
| 111 purple_debug(PURPLE_DEBUG_WARNING, "QQ", "Received group msg apply_join is empty\n"); |
112 purple_debug(PURPLE_DEBUG_WARNING, "QQ", "Received group msg apply_join is empty\n"); |
| 126 g = g_new0(group_member_opt, 1); |
127 g = g_new0(group_member_opt, 1); |
| 127 g->gc = gc; |
128 g->gc = gc; |
| 128 g->internal_group_id = internal_group_id; |
129 g->internal_group_id = internal_group_id; |
| 129 g->member = user_uid; |
130 g->member = user_uid; |
| 130 |
131 |
| |
132 nombre = uid_to_purple_name(user_uid); |
| |
133 |
| 131 purple_request_action(gc, _("QQ Qun Operation"), |
134 purple_request_action(gc, _("QQ Qun Operation"), |
| 132 msg, reason, |
135 msg, reason, |
| 133 2, g, 3, |
136 2, |
| |
137 purple_connection_get_account(gc), nombre, NULL, |
| |
138 g, 3, |
| 134 _("Approve"), |
139 _("Approve"), |
| 135 G_CALLBACK |
140 G_CALLBACK |
| 136 (qq_group_approve_application_with_struct), |
141 (qq_group_approve_application_with_struct), |
| 137 _("Reject"), |
142 _("Reject"), |
| 138 G_CALLBACK |
143 G_CALLBACK |
| 139 (qq_group_reject_application_with_struct), |
144 (qq_group_reject_application_with_struct), |
| 140 _("Search"), G_CALLBACK(qq_group_search_application_with_struct)); |
145 _("Search"), G_CALLBACK(qq_group_search_application_with_struct)); |
| 141 |
146 |
| |
147 g_free(nombre); |
| 142 g_free(reason); |
148 g_free(reason); |
| 143 g_free(msg); |
149 g_free(msg); |
| 144 g_free(reason_utf8); |
150 g_free(reason_utf8); |
| 145 } |
151 } |
| 146 |
152 |