All pastes #769517 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-11 14:18 UTC
rendered paste body
ON $*:TEXT:/^[!@.]\v\b/i:#:{
  if ($2 == $null) && ($address($nick,2) == $address($me,2)) {
    mode $chan +v $nick 
  }
  else {
    if ($2 != $null) && ($nick ishop $chan) || ($nick isvo $chan) || ($nick isop $chan) || ($address($nick,2) == $address($me,2)) {
    mode $chan +v $2 }
  }
}


that works for voicing $nick and $2

ON $*:TEXT:/^[!@.]\do\b/i:#:{
  if ($2 == $null) && ($address($nick,2) == $address($me,2)) {
    mode $chan -o $nick 
  }
  else {
    if ($2 != $null) && ($nick isop $chan) || ($address($nick,2) == $address($me,2)) {
    mode $chan -o $2 }
  }
}

yet that doesn't work for either