All pastes #591271 Raw Edit

Unnamed

public text v1 · immutable
#591271 ·published 2007-06-27 02:40 UTC
rendered paste body
on *:text:.av*:#: {
  if (($nick isop $chan) || ($nick ishop $chan)) {
    if ($readini(avlist.ini, $chan, $2 $+ $address($2,1))) {
      msg $chan 5[[4 $2 5]]7 is already added to 4AutoVoice7 list.
    }
    else {
      if ($2 ison $chan) {     
        writeini -n avlist.ini $chan $2 $+ $address($2,1)  -~- added by: $nick
        msg $chan 5[[4 $2 5]]7 has been added to 4AutoVoice7 list by5 [[4 $nick 5]]7.
      }     
      else {
        msg $chan 7User must be on channel.
      }
    }
  }
  else {
    notice $nick 7You must be op to do that.
  }
}