diff libpurple/protocols/qq/group_join.c @ 24086: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
line wrap: on
line diff
--- a/libpurple/protocols/qq/group_join.c	Wed Oct 22 15:08:30 2008 +0000
+++ b/libpurple/protocols/qq/group_join.c	Tue Oct 28 16:29:42 2008 +0000
@@ -345,22 +345,13 @@
 	qq_request_room_search(gc, ext_id, QQ_ROOM_SEARCH_FOR_JOIN);
 }
 
-void qq_room_quit(PurpleConnection *gc, GHashTable *data)
+void qq_room_quit(PurpleConnection *gc, guint32 room_id)
 {
-	gchar *id_ptr;
-	guint32 id;
 	qq_add_request *add_req;
 
-	g_return_if_fail(data != NULL);
-
-	id_ptr = g_hash_table_lookup(data, QQ_ROOM_KEY_INTERNAL_ID);
-	id = strtol(id_ptr, NULL, 10);
-
-	g_return_if_fail(id > 0);
-
 	add_req = g_new0(qq_add_request, 1);
 	add_req->gc = gc;
-	add_req->uid = id;
+	add_req->uid = room_id;
 
 	purple_request_action(gc, _("QQ Qun Operation"),
 			    _("Quit Qun"),