/* call-seq: * bz_ip_ban_user(player_id,ip,time,reason) -> true or false * * This method bans the user with the give player id on ip basis. * The ban duration time and reason can be specified. * On success it returns true , on failure it returns false. */ static VALUE bzflag_bz_IPBanUser(VALUE self, VALUE playerID, VALUE ip, VALUE time, VALUE reason) { if ( bz_IPBanUser(FIX2INT(playerID), RSTRING(StringValue(ip))->ptr, FIX2INT(time), RSTRING(StringValue(reason))->ptr)) return Qtrue; return Qfalse; }