libpurple/protocols/qq/group_join.c

branch
openq
changeset 24361
de1985a5045f
parent 24360
f7e260e79429
child 24363
383f01928954
equal deleted inserted replaced
24360:f7e260e79429 24361:de1985a5045f
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,

mercurial