libpurple/protocols/mxit/actions.c

changeset 36068
e9b9320a985a
parent 35679
0c337fe8f655
child 37148
50f361d39a1e
--- a/libpurple/protocols/mxit/actions.c	Tue May 20 11:57:20 2014 +0200
+++ b/libpurple/protocols/mxit/actions.c	Tue May 20 12:46:02 2014 +0200
@@ -53,10 +53,7 @@
 
 	purple_debug_info( MXIT_PLUGIN_ID, "mxit_profile_cb\n" );
 
-	if ( !PURPLE_CONNECTION_IS_VALID( gc ) ) {
-		purple_debug_error( MXIT_PLUGIN_ID, "Unable to update profile; account offline.\n" );
-		return;
-	}
+	PURPLE_ASSERT_CONNECTION_IS_VALID(gc);
 
 	/* validate name */
 	name = purple_request_fields_get_string( fields, "name" );
@@ -330,10 +327,7 @@
 	int						len;
 	int						i;
 
-	if ( !PURPLE_CONNECTION_IS_VALID( gc ) ) {
-		purple_debug_error( MXIT_PLUGIN_ID, "Unable to update PIN; account offline.\n" );
-		return;
-	}
+	PURPLE_ASSERT_CONNECTION_IS_VALID(gc);
 
 	/* validate pin */
 	pin = purple_request_fields_get_string( fields, "pin" );

mercurial