bloop
Posted by variant
Thursday, June 17, 2004
Description: for netraid

for netraid, this is probably screwed since its 4:10am and I've been up for a long while now, but try this :F (no it isnt pretty, no i dont care, and afaics it should work.)


on *:TEXT:*:#teamtsg:{
  if ($nick isreg $chan) {
    inc -u5 %flood. [ $+ [ $nick ] ]
    set %floodwarning. [ $+ [ $nick ] ] 1
    if (%flood. [ $+ [ $nick ] ] >= 5) && (%floodwarning. [ $+ [ $nick ] ] == 1) {
      msg chanserv #teamtsg tb $nick 30s Do not flood in $chan $+ , fucker. [Warning One/30s ban]
      msg $chan Flood Protection Activated on $nick (30sban)
      inc (%floodwarning. [ $+ [ $nick ] ]
    }
    if (%flood. [ $+ [ $nick ] ] >= 5) && (%floodwarning. [ $+ [ $nick ] >= 2) {
      msg chanserv #teamtsg tb $nick 300s Do not flood in $chan $+ , fucker. [Warning Two/5m ban]
      msg $chan Flood Protection Activated on $nick (5mban)
      unset %flood. [ $+ [ $nick ] ]
      unset %floodwarning. [ $+ [ $nick ] ]
    }
  }
}
asf
Posted by variant
Thursday, June 17, 2004 01:23am PDT

on *:TEXT:*:#teamtsg:{
  if ($nick isreg $chan) {
    inc -u5 %flood. [ $+ [ $nick ] ]
    set floodwarning. [ $+ [ $nick ] ] 1
    if (%flood. [ $+ [ $nick ] ] >= 5) && (%floodwarning. [ $+ [ $nick ] ] == 1) {
      ban -u60 $chan $nick
      msg $chan [^U]Flooding[^U] is [^B][^K]4NOT[^B][^K] allowed, do not repeat - [^B]Flood Protection[^B] [^U]Activiated[^U] on $nick ([^B]60secban[^B])  
      inc (%floodwarning. [ $+ [ $nick ] ]
    }
    elseif (%flood. [ $+ [ $nick ] ] >= 5) && (%floodwarning. [ $+ [ $nick ] >= 2) {
      ban -u600 $chan $nick
      msg $chan [^B]Repeated[^B] [^U]flooding[^U] after being [^B][^K]4warned[^B][^K] - [^B]Flood Protection[^B] [^U]Activiated[^U] on $nick ([^B]10minban[^B])
      unset %flood. [ $+ [ $nick ] ]
      unset %floodwarning. [ $+ [ $nick ] ]
    }
  }
}
yeah..
Posted by variant
Thursday, June 17, 2004 01:25am PDT
i saw the ( on the inc line too, dont comment on it :P
bleh
Posted by variant
Thursday, June 17, 2004 01:27am PDT
i see the set too :P
hm
Posted by dirtySanchez
Thursday, June 17, 2004 10:20am PDT
the set %floodwarning. [ $+ [ $nick ] ] 1 outside of the first if would cause it to never reach 2 so the elseif would never occur.
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world