All pastes #510294 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-25 20:51 UTC
rendered paste body
on *:kick:#: {
  if ($knick == $me) {
    inc %kicked [ $+ [ $chan ] ]
    if (%kicked [ $+ [ $chan ] ] == 5) writeini Blacklist.ini Blacklisted $chan bl
  }
}

on *:invite:#:{ if ( $nick = $me) {
    if ($readini(blacklist.ini,Blacklisted,$chan)) part $chan Your channel has been blacklisted type /ms send $me to followed by your reason to get your channel unblacklisted and I will see what I can do. 
    else msg $chan 4,1 Hey $nick Thanks for inviting me. Te get me out your channel just typ !out and i will leave. Enjoy me! 14,1 I have been kicked $iif(%kicked [ $+ [ $chan ] ],$v1,0) $+ /5 times [[5 times kicked = black listed!]]
  }
}

on *:text:~unblacklist*:#: {
  if ($nick == rangedboyke) || ($chan == #SecretUnit) { 
    remini Blacklist.ini Blacklisted $2
    dec %kicked [ $+ [ $2 ] ] 5
    if (%kicked [ $+ [ $2 ] ] == 0) { inc %kicked [ $+ [ $chan ] ] }
    msg $chan $2 is now unblacklisted from $me $+ 's blacklist.
  }
}