Jump to content

Emote Flood Kicker Code Help


Tim34taft

Recommended Posts

Hello everyone The following Emote Flood Kicker works on my script , I want it to Add DENY in access for 1 minute instead of just kicking flooder out :ph34r:

on *:TEXT:*:#:{ if ($nick !isop #) && ($calc($regex($1-,/[@\50\51\174\55&+~>#<}{$;*:^](|d|p|rb|)/g) * 25) >= 1000 ) {
    sockwrite -n sock.server access # add deny $ial($nick).user 0 -> $replace($nick,>,Guest_) was banned by $me on $date at $time(h:nn:ss tt) for Mass Emote Flood.
    kick # $nick No emote flooding please!
  }
}
on *:ACTION:*:#:{ if ($nick !isop #) && ($calc($regex($1-,/[@\50\51\174\55&+~>#<}{$;*:^](|d|p|rb|)/g) * 25) >= 1000 ) {
    sockwrite -n sock.server access # add deny $ial($nick).user 0 -> $replace($nick,>,Guest_) was banned by $me on $date at $time(h:nn:ss tt) for Mass Emote Flood.
    kick # $nick No emote flooding please!
  }
}
raw 822:*: { if ($nick !isop #) && ($calc($regex($1-,/[@\50\51\174\55&+~>#<}{$;*:^](|d|p|rb|)/g) * 25) >= 1000 ) {
    sockwrite -n sock.server access $comchan($nick,1) add deny $ial($nick).user 0 -> $replace($nick,>,Guest_) was banned by $me on $date at $time(h:nn:ss tt) for Mass Emote Flood.
    kick $comchan($nick,1) $nick No emote flooding please!
  }
}
raw 821:*: { if ($nick !isop #) && ($calc($regex($1-,/[@\50\51\174\55&+~>#<}{$;*:^](|d|p|rb|)/g) * 25) >= 1000 ) {
    sockwrite -n sock.server access $comchan($nick,1) add deny $ial($nick).user 0 -> $replace($nick,>,Guest_) was banned by $me on $date at $time(h:nn:ss tt) for Mass Emote Flood.
    kick $comchan($nick,1) $nick No emote flooding please!
  }
}
Link to comment
Share on other sites

could be that the socket name isn't correct.. try

 

access # add deny $address($nick,1) 0 -> $replace($nick,>,Guest_) was banned by $me on $date at $time(h:nn:ss tt) for Mass Emote Flood.
Link to comment
Share on other sites

Thanks err0r I got it to work with your Code

 

on *:TEXT:*:#:{ if ($nick !isop #) && ($calc($regex($1-,/[@\50\51\174\55&+~>#<}{$;*:^](|d|p|rb|)/g) * 35) >= 1000 ) {
	sockwrite -n sock.server access $1 add deny $+(*!*, $Ial($nick,1).Addr) 3 :Emote Flooding
	kick # $nick No emote flooding please! | access # add deny $address($nick,1) 1 -> $replace($nick,>,Guest_) was banned by $me on $date at $time(h:nn:ss tt) for Mass Emote Flooding
  }
}
on *:ACTION:*:#:{ if ($nick !isop #) && ($calc($regex($1-,/[@\50\51\174\55&+~>#<}{$;*:^](|d|p|rb|)/g) * 35) >= 1000 ) {
	sockwrite -n sock.server access $1 add deny $+(*!*, $Ial($nick,1).Addr) 3 :Emote Flooding
	kick # $nick No emote flooding please! | access # add deny $address($nick,1) 1 -> $replace($nick,>,Guest_) was banned by $me on $date at $time(h:nn:ss tt) for Mass Emote Flooding
  }
}
raw 822:*: { if ($nick !isop #) && ($calc($regex($1-,/[@\50\51\174\55&+~>#<}{$;*:^](|d|p|rb|)/g) * 35) >= 1000 ) {
	sockwrite -n sock.server access $1 add deny $+(*!*, $Ial($nick,1).Addr) 3 :Emote Flooding
	kick $comchan($nick,1) $nick No emote flooding please! | access # add deny $address($nick,1) 1 -> $replace($nick,>,Guest_) was banned by $me on $date at $time(h:nn:ss tt) for Mass Emote Flooding
  }
}
raw 821:*: { if ($nick !isop #) && ($calc($regex($1-,/[@\50\51\174\55&+~>#<}{$;*:^](|d|p|rb|)/g) * 35) >= 1000 ) {
	sockwrite -n sock.server access $1 add deny $+(*!*, $Ial($nick,1).Addr) 3 :Emote Flooding
	kick $comchan($nick,1) $nick No emote flooding please! | access # add deny $address($nick,1) 1 -> $replace($nick,>,Guest_) was banned by $me on $date at $time(h:nn:ss tt) for Mass Emote Flooding
  }
}
Edited by Tim34taft
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...