Repeat - 21/12/11 07:16 PM
want an warning echo for me that when someone repeat more than three it send me echo that ... this nick made repeat 3 times
on @*:text:*:#: { if ( %rep_time == $null ) { set %rep_time 60 } if ( %rep_ban == $null ) { set %rep_ban 120 } if ( %rep_amount == $null ) { set %rep_amount 3 } if ($nick == null) { return } var %rp.repeats = rp. $+ $nick $+ . $+ $chan var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text if ( % [ $+ [ %rp.repeats ] ] == $null ) { set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.repeats ] ] 1 set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.text ] ] $1- } elseif ( % [ $+ [ %rp.text ] ] == $1- ) { inc % [ $+ [ %rp.repeats ] ] } elseif ( % [ $+ [ %rp.text ] ] != $1- ) { set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.text ] ] $1- set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.repeats ] ] 1 } if ( % [ $+ [ %rp.repeats ] ] >= %rep_amount ) { ; Edit this line if you want to echo instead of kick ; If you dont use ban, just remove > Banned for $calc(%rep_ban / 60)) $+ minute(s) kick # $nick % [ $+ [ %rp.repeats ] ] repeats in %rep_time second(s) Banned for $calc(%rep_ban / 60)) $+ minute(s) $+ ) ; If you dont want the ban function at all, just remove the line if (%ban_user == 1) { ban -u $+ %rep_ban # $nick 3 } unset %rp. $+ $nick $+ . $+ $chan unset %rp. $+ $nick $+ . $+ $chan $+ . $+ text } }
if ($nick == null) { return }