[::X-System::]
The world is coming to an end. Please log-off. Member #26
i guess that wud help (after using it with each letter separately!);
on @*:text:*a*:#: {
if ($len($1-) >= 30) {
if ($nick isowner $chan) halt
/kick $chan $nick No Flooding Please
access # add deny $address($nick,1) 1 :TEXT FLOOD
}
}
untested ..
Edited May 14, 2005 10:17 PM by [::X-System::]
Thank you guys,
I got a nice code
most of the codes has a problem that it won't kick arabic letters..
so Peterje did this code with $msn.decode($1-) to work for arabic letters ..
and it work also for english , numbers anything ..
#Flood on
on @*:TEXT:*:#: flcheck $msn.decode($1-)
on @*:ACTION:*:#: flcheck $msn.decode($1-)
alias -l flcheck {
 if (($nick isop $chan) || ($nick !ison $chan)) return Â
 var %l = $len($1-), %i = 1, %rep
 while (%i < %l) {
  if ($mid($1-,%i,1) == $mid($1-,$calc(%i + 1),1)) {
   inc %rep
   if (%rep >= 55) { tfkick $nick | return }
  }
  else %rep = 0
  inc %i
 }
}
alias tfkick { sockwrite -n msn.server. $+ $cid access $hget(msn. $+ $cid,fullroom) add deny $ial($1).addr 1 :TEXT FLOOD $crlf kick $hget(msn. $+ $cid,fullroom) $1 :No Flooding Please }
#Flood end
========================
=====Credits to Peterje========
========================
Edited May 15, 2005 6:17 AM by bonTy