All pastes #594222 Raw Edit

Unnamed

public text v1 · immutable
#594222 ·published 2007-06-28 20:32 UTC
rendered paste body
on *:LOAD: {
  set %flood.unset 10
  set %flood.lines 2
  set %flood.bantime 300
}
on *:TEXT:*:#RssMarket: {
  if ($nick isreg $chan) {
    inc $($+(-u,%flood.unset)) $+(%,flood.,$chan,.,text.,$nick) 
    if ($($+(%,flood.,$chan,.,text.,$nick),2) >= %flood.lines) {
      inc %kickcounter
      ban $($+(-ku,%flood.bantime)) $chan $nick 2 Please do not flood in #RsMarket (2 Lines in 10 Secs) [Tempban 5 Min] $kickc
    }
    elseif ($chr(34) isin $1-) {
      inc %kickcounter
      ban -ku300 $chan $nick 2 Advertising is NOT tolerated! (Use of "#" symbol) [TempBan 5 Min] $kickc
      halt
    }
    elseif ($chr(2) isin $1-) || ($chr(31) isin $1-) || ($chr(3) isin $1-) || ($chr(22) isin $1-) {
      inc %kickcounter
      ban -ku300 $chan $nick 2 No bolds underlines 04colours or reverses allowed [TempBan 5 Min] $kickc
      halt
    }
  }
}
on *:ACTION:*:#RssMarket: { 
  ban -ku300 $chan $nick 2 There will be no use of actions ("/me") in #RsMarket [Tempban 5 Min] $kickc
}
alias -l kickc {
  inc %kickcounter
  return » %kickcounter «
}