/* call-seq:
 *      bz_kick_user(player_id,reason,notify) -> true or false       
 *
 *      This method kicks the user with the give player id.
 *      On success it returns true , on failure it returns false.
 */ 

static VALUE
bzflag_bz_kickUser(VALUE self, VALUE playerID, VALUE reason, VALUE notify)
{
        bool bnotify;

        if ( TYPE(notify) == T_TRUE)   
                bnotify = true;

        if ( TYPE(notify) == T_FALSE)  
                bnotify = false;

        if ( bz_kickUser(FIX2INT(playerID), RSTRING(StringValue(reason))->ptr, bnotify))
                return Qtrue;

        return Qfalse;

}