Jump to content

Scroll Kick


Rhys

Recommended Posts

 #fjoin on
on ^*:join:#:{
 if ($nick == $me || $nick isop # ) { return } 
 inc -z % $+ $gettok($address,1,64) 5  
 if ( % [ $+ [ $gettok($address,1,64) ] ] > 10 ) { access # add DENY *! $+ $gettok($address,1,64) 15 : JoinFlood $nick | kick # $nick JoinFlood (15 min. Ban) }
}
#fjoin end

#fscroll on
on ^*:TEXT:*:#:FloodCheck $1-
on ^*:ACTION:*:#:FloodCheck $1-
on ^*:NOTICE:*:#:FloodCheck $1-
#fscroll end

#fctcp on
ctcp *:*:*: { FloodCheck $1- }
#fctcp end

#faway on
raw 821:*:FloodCheck $1-
raw 822:*:FloodCheck $1-
#faway end

alias FloodCheck {
 if ($nick == $me ) || $nick isop $iif(#,#,%room) { return }
 var %h $hash($left($1-,100),32)
 inc -z % $+ $gettok($address,1,64) $+ . $+ %h 5
 if ( % [ $+ [ $gettok($address,1,64) ] $+ . $+ [ %h ] ]  > 15 ) { access $iif(#,#,%room) add DENY *! $+ $gettok($address,1,64) 5 : $nick - Flood | kick $iif(#,#,%room) $nick Flood (5 min. Ban) }
}

 

 

 

its not what you asked for but better direct then have a warning to them :P well you take it or not youre choice :D byee

 

 

Link to comment
Share on other sites

on @1:TEXT:#: fcount text
on @1:NOTICE:#: fcount notice
on @1:ACTION:#: fcount action

alias fcount {
 if (%fcount. [ $+ [ $1 ] $+ . $+ [ $nick ] ]) inc %fcount. [ $+ [ $1 ] $+ . $+ [ $nick ] ]
 else set -u2 %fcount. [ $+ [ $1 ] $+ . $+ [ $nick ] ] 1
 if (%fcount. [ $+ [ $1 ] $+ . $+ [ $nick ] ] == 3) {
   access $chan add deny $ial($nick).addr 15 :Scroll Flooding
   kick $chan $nick Scroll Flooding
 }
}

 

This should work out for ya.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...