--- 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" );