All pastes #556208 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-10 13:34 UTC
rendered paste body
on *:TEXT:!blacklist*:#: {
  if ($nick ishop $chan) || ($nick isop $chan) || ($nick == rangedboyke)  {
    if ($readini(blacklist.ini,$chan,$address($2,2))) { /notice $nick 12 $2 Is already in the blacklist
    }
    else {
      .writeini blacklist.ini $chan $address($2,2) $2 
      /notice $nick $2 has been added to my blacklist
      ban -ku600 $chan $address($2,2)
      /notice $2 12You are now not welcome on this channel!
    }
  }
}
on *:JOIN:#: {
  if ($readini(blacklist.ini,$chan,$address($nick,2))) {
    ban -ku600 $chan $nick
    /msg $chan $nick was found in my blacklist and is not welcome on $chan
    /notice $nick 4you have received a 10 min ban DO NOT COME BACK you are blacklisted on this channel
  }
}
on *:TEXT:!delblack*:#: {
  if ($readini(blacklist.ini,$chan,$address($2,2))) {
    .remini blacklist.ini $chan $address($2,2)
    /notice $nick $2 has been removed from blacklist
    /mode $chan -b $address($2,2)
    /notice $2 3You have been unblacklisted by $nick please come back to $chan
  }
}