libpurple/protocols/mxit/roster.c

branch
mxit-2.x.y
changeset 33828
7a40d62c81d8
parent 33211
97c8cd903433
parent 33816
9eb08b587d95
child 33848
07ffa66fd57b
--- a/libpurple/protocols/mxit/roster.c	Sat Jan 26 12:46:00 2013 +0200
+++ b/libpurple/protocols/mxit/roster.c	Wed Mar 27 01:37:02 2013 +0200
@@ -619,7 +619,7 @@
 	purple_debug_info( MXIT_PLUGIN_ID, "mxit_cb_buddy_deny '%s'\n", invite->contact->username );
 
 	/* send a deny subscription packet to MXit */
-	mxit_send_deny_sub( invite->session, invite->contact->username );
+	mxit_send_deny_sub( invite->session, invite->contact->username, NULL );
 
 	/* remove the invite from our internal invites list */
 	invite->session->invites = g_list_remove( invite->session->invites, invite->contact );
@@ -750,8 +750,10 @@
 
 		if ( buddy_name[0] == '#' ) {
 			gchar *tmp = (gchar*) purple_base64_decode( buddy_name + 1, NULL );
-			mxit_send_invite( session, tmp, FALSE, buddy_alias, group_name, message );
-			g_free( tmp );
+			if ( tmp ) {
+				mxit_send_invite( session, tmp, FALSE, buddy_alias, group_name, message );
+				g_free( tmp );
+			}
 		}
 		else
 			mxit_send_invite( session, buddy_name, TRUE, buddy_alias, group_name, message );

mercurial