All pastes #928902 Raw Edit

Etwas

public text v1 · immutable
·published 2008-03-05 12:03 UTC
rendered paste body
on *:text:!warn*:#:{ 
  if ($readini(Warn.ini,$chan,$address($2,2)) == 1) { 
    writeini Warn.ini $chan $address($2,2) $calc( $readini(Warn.ini,$chan,$address($2,2)) +1) 
  notice $2 You are now on your second warning, 2 more and your out of here | halt } 

  if ($readini(Warn.ini,$chan,$address($2,2)) == 2) { 
    writeini Warn.ini $chan $address($2,2) $calc( $readini(Warn.ini,$chan,$address($2,2)) +1) 
  notice $2 You just got your third warning, 1 more and your gone.. | halt } 

  if ($readini(Warn.ini,$chan,$address($2,2)) == 3) { 
    set %reason. I gave you 3 warnings and you blew it, 
    ban -ku120 $chan $$2 2 Reason: %reason.  2 Minute Ban 
    Unset %reason. 
    remini Warn.ini $chan $address($2,2) 
  halt } 

  if ($readini(Warn.ini,$chan,$address($2,2)) == $null) { 
    writeini Warn.ini $chan $address($2,2) 1 
    notice $2 You have just received warn number 1, 3 more and you get Kb'd 
  } 
}