All pastes #904213 Raw Edit

for laim ferret

public text v1 · immutable
·published 2008-02-14 20:02 UTC
rendered paste body
on *:text:.Bl *:#: {
  If ($nick == nickhere) {
    set %blnick [ $+ [ $2 ] ] on
    set %blhost [ $+ [ $address($2,2) ] ] on
    msg $chan [BLACKLIST] $2 has been banned.
    kick $CHAN $2
    mode $chan +bb  $2 $address($2,2)
  } 
}

on *:text:.unBl *:#: {
  if ($nick == nickhere) {
    mode $chan -bb $2 $address($2,2)
    msg $chan [UNBLACKLISTED] $2 has been unbanned.
    unset %blnick [ $+ [ $2 ] ] on
    unset %blhost [ $+ [ $address($2,2) ] ] on
  }
}

on *:JOIN:#: {
  if (%blnick [ $+ [ $nick ] ] = on) || (%blhost [ $+ [ $address($nick,2) ] ] = on) {
    /kick $CHAN $nick
  /mode $chan +b $address($nick,2) } 
  else { 
    /msg $chan 12Welcome $nick to $chan Enjoy your stay.
  }
}