Skip to content
General IRCd

Emote Flood Kicker Code Help

A TG007 community discussion started by Tim34taft.

Discussion 7 posts
Page 1 of 1
Open
Topic #15392 · 7 published posts · 2,672 views

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!
  }
}

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.

Get information about ircWx here

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 Jan 2, 2012 8:14 PM by Tim34taft

yw

Get information about ircWx here

Sorry I'm back my chatters got pissy cause they cant post more emotes is there a way to adjust the amounts of emotes they can post i tried to adjust these numbers with no luck

35) >= 1000

Sorry nevermind Warrior got it to allow more emotes but adjusting it lower instead of higher with 15) >= 1000 )

Thank you err0r and Warrior for all your help I now have the perfect Emote kicker and will be ready :D:D:D

Your Very Welcome Tim :yes:

on ^*:JOIN:#:{
if ($me == bracketflobdotpercentagebubble $nick )
and if flobadobubblebobbleexclamationmark =tokenize 32 $regsubex .echo it's time for coffee!!