rendered paste bodyon @*:text:*:#: {
if ( %rp_duration == $null ) { set %rp_duration 2 }
if ( %rp_bantime == $null ) { set %rp_bantime 60 }
if ( %rp_offences == $null ) { set %rp_offences 2 }
if ( $nick isreg # ) {
var %rp.repeats = rp. $+ $nick $+ . $+ $chan
var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text
if ( % [ $+ [ %rp.repeats ] ] == $null ) {
set -u [ $+ [ %rp_duration ] ] % [ $+ [ %rp.repeats ] ] 1
set -u [ $+ [ %rp_duration ] ] % [ $+ [ %rp.text ] ] $1-
}
elseif ( % [ $+ [ %rp.text ] ] == $1- ) {
inc % [ $+ [ %rp.repeats ] ]
}
elseif ( % [ $+ [ %rp.text ] ] != $1- ) {
set -u [ $+ [ %rp_duration ] ] % [ $+ [ %rp.text ] ] $1-
set -u [ $+ [ %rp_duration ] ] % [ $+ [ %rp.repeats ] ] 1
}
if ( % [ $+ [ %rp.repeats ] ] > %rp_offences ) {
ban -u [ $+ [ %rp_bantime ] ] # $nick 2
kick # $nick % [ $+ [ %rp.repeats ] ] repeats in %rp_duration second(s
unset % [ $+ [ %rp.repeats ] ]
unset % [ $+ [ %rp.text ] ]
}
}
}