All pastes #936520 Raw Edit

Vermischtes

public text v1 · immutable
·published 2008-03-10 14:14 UTC
rendered paste body
on *:kick:#: { 
  if ($knick == $me) { 
    inc $+(%,kickcnt.,$chan) 
    if ($($+(%,kickcnt.,$chan),2) > 4) { 
      write banchan.txt $chan 
      unset $+(%,kickcnt.,$chan) 
    } 
  } 
} 
on me:*:join:#:{ 
  if $read(banchan.txt,w,$chan) { 
    .part $chan $chan 10Has been blacklisted to have this removed please contact an operator in 4#Nitro  . 
  } 
  else { 
    if ($chan != #bots) { 
      if ($($+(%,kickcnt.,$chan),2)) var %left = $+($calc(5 - $v1),/5) 
      else var %left = 5/5 
      timer 1 2  /msg $chan 10If I Am kicked More Than 4 5 4 10Times This Channel Will Be Blacklisted. Number Of Kicks Left 4 %left
      timer 1 3 /msg $chan 10If you have any questions, you can ask in 4#Nitro. 10To Know my commands : 4!commands  : 10Part command : 4!out.
    } 
  } 
} 
On *:TEXT:!addban &:#: { 
  if ($address($nick,2) == $readini(botsettings.ini,staff,$address($nick,2))) && ($2) {
    msg $chan $2 10has been added to Blacklist - by 4 $nick . 
    var %file = banchan.txt 
    if ( !$read(%file,nw,$2) ) write %file $2 
  } 
} 
on *:text:!delban &:#: { 
  if ($address($nick,2) == $readini(botsettings.ini,staff,$address($nick,2))) && ($2) {
    msg $chan $2 10has now been removed from Blacklist - by 4 $nick . 
    var %file = banchan.txt 
    if ($read(%file,nw,$2)) write $+(-dl,$readn) %file 
  } 
}