On *:text:!command *:#:{ if $2 isnum { do stuff } else { msg $nick We only accept numeric values. } }