All pastes #640104 Raw Edit

Stuff

public text v1 · immutable
#640104 ·published 2007-07-31 02:41 UTC
rendered paste body
alias av {
  if ($replace($2-,$chr(32),_) !isin $readini(av.ini,avoices,1)) {
    /writeini -n av.ini avoices 1 $readini(av.ini,avoices,1) $replace($1-,$chr(32),_)
    /echo -a " $+ $1- $+ " added to auto-voice list. | halt
  }
  if ($replace($2-,$chr(32),_) isin $readini(av.ini,avoices,1)) {
    /echo -a " $+ $1- $+ " is already auto-voiced. | halt
  }
}
alias dav {
  if ($replace($1-,$chr(32),_) isin $readini(av.ini,avoices,1)) {
    /writeini -n av.ini avoices 1 $remove($readini(av.ini,avoices,1),$replace($1-,$chr(32),_))
    /echo -a " $+ $1- $+ " deleted from the auto-voice list. | halt
  }
  if ($replace($1-,$chr(32),_) !isin $readini(av.ini,avoices,1)) {
    /echo -a " $+ $1- $+ " isn't auto-voiced. | halt
  }
}
alias avs { /echo -a Auto-Voiced users: $readini(av.ini,avoices,1) }
on *:JOIN:#:{ 
  if ($nick isin $readini(av.ini,avoices,1) {
    mode $chan +v $nick
  }
  else {
    halt
  }
}