Mercurial > pidgin
comparison libpurple/protocols/qq/group_join.c @ 24155:3c52353b83ae
2008.10.08 - ccpaging <ccpaging(at)gmail.com>
* 20081008-1
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Tue, 28 Oct 2008 16:29:42 +0000 |
parents | 237e5a94e11c |
children | 1ee91ff0d5fe |
comparison
equal
deleted
inserted
replaced
24154:237e5a94e11c | 24155:3c52353b83ae |
---|---|
343 } | 343 } |
344 | 344 |
345 qq_request_room_search(gc, ext_id, QQ_ROOM_SEARCH_FOR_JOIN); | 345 qq_request_room_search(gc, ext_id, QQ_ROOM_SEARCH_FOR_JOIN); |
346 } | 346 } |
347 | 347 |
348 void qq_room_quit(PurpleConnection *gc, GHashTable *data) | 348 void qq_room_quit(PurpleConnection *gc, guint32 room_id) |
349 { | 349 { |
350 gchar *id_ptr; | |
351 guint32 id; | |
352 qq_add_request *add_req; | 350 qq_add_request *add_req; |
353 | |
354 g_return_if_fail(data != NULL); | |
355 | |
356 id_ptr = g_hash_table_lookup(data, QQ_ROOM_KEY_INTERNAL_ID); | |
357 id = strtol(id_ptr, NULL, 10); | |
358 | |
359 g_return_if_fail(id > 0); | |
360 | 351 |
361 add_req = g_new0(qq_add_request, 1); | 352 add_req = g_new0(qq_add_request, 1); |
362 add_req->gc = gc; | 353 add_req->gc = gc; |
363 add_req->uid = id; | 354 add_req->uid = room_id; |
364 | 355 |
365 purple_request_action(gc, _("QQ Qun Operation"), | 356 purple_request_action(gc, _("QQ Qun Operation"), |
366 _("Quit Qun"), | 357 _("Quit Qun"), |
367 _("Note, if you are the creator, \nthis operation will eventually remove this Qun."), | 358 _("Note, if you are the creator, \nthis operation will eventually remove this Qun."), |
368 1, | 359 1, |