if (%val == $3) { msg $chan %user has had the maximum warnings! }
if (%val == 3) { msg $chan %user has had the maximum warnings! }