Code:
alias autovoice {
  var %x = $nick($1,0)
  while (%x) {
    if (($nick($1,%x).idle >= 1200) && ($nick($1,%x) != $me)) {
      if ($me isop $1) timer 1 2 mode $v2 -v $nick($1,%x)
        [color:red]msg # $nick You've been devoiced because you haven't been saying nothing for over 20 minutes now[/color]
    }
    dec %x
  }
}


that's a part of voice checker i think it's Slade's it checks nick's idle time at a certain time and devoices nick if that nick don't speak in channel for that certain time...

the highlighted part is what i want to add but it gets annoying when i did add that msg to it cause it repeats the hightlighted msg every 10 seconds

how do i fix that?