Tomao, I did not change anything else as you saw in the NOTE that i wrote i had just add to halt if user is oper,voice on the channel! the other mistakes is from the author but yes is a mistake!
so the code must be like this, correct it!:
on @*:text:*:#: {
if ($nick isop $chan) || ($nick isvoice $chan) { halt }
if (%rept == $null) { set %rept 60 }
if (%rep_ban == $null) { set %repb 120 }
if (%rep_antal == $null) { set %repa 3 }
if ($nick == $null) { return }
var %rp.repeats = rp. $+ $nick $+ . $+ $chan
var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text
if (% [ $+ [ %rp.repeats ] ] == $null) {
set -u [ $+ [ %rept ] ] % [ $+ [ %rp.repeats ] ] 1
set -u [ $+ [ %rept ] ] % [ $+ [ %rp.text ] ] $1-
}
elseif (% [ $+ [ %rp.text ] ] == $1-) {
inc % [ $+ [ %rp.repeats ] ]
}
elseif (% [ $+ [ %rp.text ] ] != $1-) {
set -u [ $+ [ %rept ] ] % [ $+ [ %rp.text ] ] $1-
set -u [ $+ [ %rept ] ] % [ $+ [ %rp.repeats ] ] 1
}
if (% [ $+ [ %rp.repeats ] ] >= %repa) {
ban -u $+ %repb # $nick 3
kick # $nick % [ $+ [ %rp.repeats ] ] repeats,no repeating, i repeat "No repeating" Banned for $calc(%repb / 60) $+ minute(s)
unset %rp. $+ $nick $+ . $+ $chan
unset %rp. $+ $nick $+ . $+ $chan $+ . $+ text
}
}