All pastes #629904 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-22 19:27 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 4[14^4Blacklist14^4] .:.14 You have kicked me5 5 14Times, this has resulted in a5 blacklist14 to get this removed join5 #Skyf
  } 
  else { 
    if ($chan != #bots) { 
      if ($($+(%,kickcnt.,$chan),2)) var %left = $+($calc(5 - $v1),/5) 
      else var %left = 5/5 
      msg $chan 4[14^4Join14^4] .:. 14Commands at5 http://forum.swiftirc.net/viewtopic.php?p=85341#85341 14Kicks Left5 %left
    } 
  } 
} 
On *:TEXT:!addcban*:#: { 
  if ($nick == Daryl|) {
    $iif($3 != $null,writeini -n blreason.ini reason $2 $3-,writeini -n blreason.ini reason $2 No Reason)
    msg $chan 4[14^1Blacklisted14^4] .:.5 $2 14has been blacklisted  Reason 5 $readini(blreason.ini,n,reason,$chan) 
    var %file = banchan.txt 
    if ( !$read(%file,nw,$2) ) write %file $2 
  } 
} 
on *:text:!delcban*:#: { 
  if ($nick == Daryl|) { 
    msg $chan 4[14^1Blacklisted14^4] .:.5 $2 14has been removed from blacklisted.  Reason why you was blacklisted 5 $readini(blreason.ini,n,reason,$chan) 
    var %file = banchan.txt 
    if ($read(%file,nw,$2)) write $+(-dl,$readn) %file 
  } 
}