Is this the best way of doing this? I think I need an expert opinion.

Code:
on *:TEXT:*:#: {
  EmoteFlood $nick $chan $1-
}


Code:
alias EmoteFlood {
  if ($calc($wildtok($3-,*,0,41) + $wildtok($3-,*,0,58) - $wildtok($3-,:,0,41)) > 30) && ($nick !isop $comchan($nick,1)) {
    access $comchan($nick,1) add deny $ial($1).user 5 -> Violation of Code of Conduct - Emoticon Flood.
    kick $2 $1 : Please do not engage in flooding with emoticons!
    halt
  }
}