All pastes #587860 Raw Edit

Unnamed

public text v1 · immutable
#587860 ·published 2007-06-25 04:13 UTC
rendered paste body
alias av {
  if ($readini(av.ini,ADRESSES,$address($1,2))) { msg $active $1 Is already av
  }
  else {
    writeini av.ini ADRESSES $address($1,2) $1 
    msg $active $1 has been added to $active av list
    mode $active +v $1
  }
}


alias delav {
  if ($readini(av.ini,ADRESSES,$address($1,2))) {
    remini av.ini ADRESSES $address($1,2)
    msg $active $1 has been removed from av
    mode $active -v $1
    notice $1 You are not av in $chan anymore
  }
}
on *:JOIN:#:{
if ($readini(av.ini,ADRESSES,$address($nick,2))) {
  mode $chan +v $nick
 }
}