Korvin commented on a Page, AV  -  Feb 02, 2009

dont worry, i did this while i was tired out of my mind, and i scripted it without testing

alias isq if ($1 isop $2 || $1 ishop $2 || $address($1,2) == $address($me,2)) return $true
on *:JOIN:#:{ if ($($+(%,av,$chan),2)) && ($($+(%,av,$address($,2)),2) == $address($nick,2)) mode $chan +v $nick }
on *:text:/^[!@#^](de)?av/gi:# {
  if ($isq($nick,#)) {
    if (*deav !iswm $1) {
      if ($2 == on || $2 == off) {
        $iif($2 == on,set,unset) %Av $+ $chan on
        msg $chan Autovoice is $iif($2 == on,on,off) for $chan 
        halt
      }
      set $+(%av,$address($,2)) $address($2,2) 
      msg $chan $address($2,2) added to autovoice list.
    }
    unset $+(%av,$address($,2))
    msg $chan $2 removed from autovoice list   
  }
}

much cleaner.

jesus.. mine destroys all of yours

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.