libpurple/protocols/mxit/multimx.c

branch
mxit-2.x.y
changeset 33828
7a40d62c81d8
parent 33619
574bdd1627f3
parent 33782
1690e0b2c508
child 33848
07ffa66fd57b
--- a/libpurple/protocols/mxit/multimx.c	Sat Jan 26 12:46:00 2013 +0200
+++ b/libpurple/protocols/mxit/multimx.c	Wed Mar 27 01:37:02 2013 +0200
@@ -275,7 +275,6 @@
 void multimx_invite(struct MXitSession* session, struct contact* contact, const char* creator)
 {
 	GHashTable *components;
-	struct multimx* multimx = NULL;
 
 	purple_debug_info(MXIT_PLUGIN_ID, "Groupchat invite to '%s' (roomid='%s') by '%s'\n", contact->alias, contact->username, creator);
 
@@ -284,7 +283,7 @@
 		return;
 
 	/* Create a new room */
-	multimx = room_create(session, contact->username, contact->alias, STATE_INVITED);
+	room_create(session, contact->username, contact->alias, STATE_INVITED);
 
 	components = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
 	g_hash_table_insert(components, g_strdup("room"), g_strdup(contact->alias));
@@ -514,7 +513,7 @@
 	}
 
 	/* Send Subscription Reject to MXit */
-	mxit_send_deny_sub(session, multimx->roomid);
+	mxit_send_deny_sub(session, multimx->roomid, NULL);
 
 	/* Remove from our list of rooms */
 	room_remove(session, multimx);

mercurial