All pastes #480051 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-10 01:39 UTC
rendered paste body
on $*:TEXT:/^[!@](wl|accept)/Si:#luckypc,#luckystaff:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if ($readini(luckypc.ini,n,wl,$address($2,2))) { 
      $iif($left($1,1) == @,.msg $chan,.notice $nick) $2 is already Whitelisted on $chan $+ ! 
      halt
    }
    else {
      writeini -n luckypc.ini wl $address($2,2) wld
      $iif($left($1,1) == @,.msg $chan,.notice $nick) $2 has been Whitelisted on $chan
      /inc $+(%,$nick,3) 1   
      mode $chan +v $2
    }
  }
}
on $*:TEXT:/^[!@](dwl|deny)/Si:#luckypc,#luckystaff:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if (!$readini(luckypc.ini,n,wl,$address($2,2))) {
      $iif($left($1,1) == @,.msg $chan,notice $nick) $2 isnt on whitelist!
      halt
    }
    else {
      remini luckypc.ini wl $address($2,2)
      $iif($left($1,1) == @,.msg $chan,notice $nick) $2 has been De-Whitelisted on $chan $+ .
    }
  }
} 
This is the part it reads:
on *:JOIN:#luckypc:{
  if ($nick == luckybot) || ($nick == $me) || ($nick isop $chan) || ($nick ishop $chan) { halt }  
  if ($readini(luckypc.ini,n,wl,$nick)) && (!$readini(luckypc.ini,n,wl,$address($2,2))) {
   mode $chan +v $nick 
    halt
  }
  if ($readini(luckypc.ini,n,wl,$address($2,2))) {
    mode $chan +v $nick
    halt
  }