Greetz folks,

we have been using this code (i found on the net ages ago) to catch text repeats from multiple nicks with different hosts to store them all and ban them ( we would like to add stacked modes and kicks if possible as well to limit ban settings and kicks we use this on dalnet i believe max stacked modes is 6 and max stacked kicks is 4)

it works somewhat except it doesnt catch the first nick who started the text repeats

here is what we work with:

Code

ON ^*:text:*:#:{ 
  if ($nick(#,$me,@&~%) && !$nick(#,$nick,@&~%)) {  
    if (*irccloud* iswm $site) { halt }
    Xpro_check $nick $strip($1-,burcmo) 
  }
}


Alias Xpro_check {
  if ($nick($chan,$1,@&~%)) return
  var %h = $hash($lower($strip($left($2-,400),burcmo)),32)
  if (%protect.r. [ $+ [ $chan ] $+ . $+ [ %h ] ] < 70) inc -z %protect.r. $+ $chan $+ . $+ %h 20
  inc -z %protect.r. $+ $chan $+ . $+ $chan $+ . $+ %h %protect.r. [ $+ [ $chan ] $+ . $+ [ %h ] ]
  inc -z %protect.r. $+ $chan $+ . $+ $chan $+ . $+ %h %protect.j. [ $+ [ $chan ] $+ . $+ [ $chan ] ]
  if (%protect.r. [ $+ [ $chan ] $+ . $+ [ $chan ] $+ . $+ [ %h ] ] > 2) { 
    mode # +b $address($1,4)
  }
}



Last edited by Simo; 17/11/22 12:58 PM.