lol or even simpler
on *:text:Scalc*:#:{ if $2 isnum 0-99999999999999999 && $4 isnum 0-99999999999999999 { notice $nick $2 $3 $4 = $calc($2 $3 $4) } else { msg $chan Error } }