I am trying to write a devoice script that will devoice a nick
who triggers a auto voice script just to get a +v. What I have
done is when a nick triggers the ctcp command to get a
voice. The script waits 10 1/2 minutes befor it devoices the nick.if they don't share there files. For some reason the script
devoices the nick anyway. Any Suggestions, Ideas or input?

Code:
 
 [color:red] 
ctcp *:*:*: {
  if (!$window(@av)) { window -lh @AV }
  if ( SLOTS isin $1 ) || ( sound isin $1 ) || ( Mp3 isin $1 ) {
    if ( $nick isop # ) || ( $nick == $me ) { return }
    var %nick = $nick
    %fline = $fline(@AV,%nick,1,0)
    if (%fline) { .timer $+ %nick off }
    else { 
      iline @AV 1 %nick
      ./cnick $nick 4
 [color:green]       Timer Triggers the devoice  [/color] 
;      .timer $+ %nick 1 330 mode # -v $nick 
 [color:green]       I use this to color the nick instead of -v the nick [/color]
       .timer $+ %nick 1 330 ./cnick $nick 6  
    }
  }
}

ON *:PART:#: {
  var %nick = $nick
  %fline = $fline(@AV,%nick,1,0)
  if (%fline) { dline @AV %fline | .timer $+ %nick off | ./cnick -r $nick }
}

ON *:QUIT: {
  var %nick = $nick
  %fline = $fline(@AV,%nick,1,0)
  if (%fline) { dline @AV %fline | .timer $+ %nick off | ./cnick -r $nick }
}

ON *:DEVOICE:#: { ./cnick -r $nick }

ON *:OP:#: {
  var %nick = $nick
  %fline = $fline(@AV,%nick,1,0)
  if (%fline) { dline @AV %fline | .timer $+ %nick off | ./cnick -r $nick }
}
 [/color]