This isnt a line repeat kicker, but this kicks on users that type like this:
Hi Hi Hi Hi Hi You can change the amount of repeated words. (By changing the number after the ">" in: "if ($wildtok(%text,$gettok(%text,%i,32),0,32) >= 10)" ) And again, you need an (@) Operator status to kick people. ```mirc on *:TEXT:*:#channelweretouseit: { if ($checkToks($$1-)) && ($nick !isop #) { kick $chan $nick Stop repeating. Stop repeating. Stop repeating. Stop repeating. Stop repeating. } } alias checkToks { var %text = $$1-, %i = 0 while (%i <= $numtok(%text,32)) { if ($wildtok(%text,$gettok(%text,%i,32),0,32) >= 10) { return 1 } inc %i } return } ```@ReQueST: You can do this with regex and it does the same thing:
on @$*:TEXT:/(.\s)\1{10}/:#:if ($nick !isop #) kick # $nick Stop repeating!
@fahabalboa: If you want to use the author's script above, all you need to do is change >= 10 to >= 4 The same goes the one I'm showing here change it to {4}
The above version will match space between repeated words. If you want to match letters like 11111111111111 aaaaaaaaaaaaaaa mmmmmmmmmmmmmmmmmmmm without spaces, just remove \s as such:
on @$*:TEXT:/(.)\1{10}/:#:if ($nick !isop #) kick # $nick Stop repeating!