Hi again!
Have been a while since i scripted, and now i run in to a problem.
I have this code:
if (%capsflood.punishment != Disabled) && ($me isop $chan) && ($proc) {
var %p = $int($calc(($regex($1-,/[A-ZÄÖ]/g) / $len($1-)) * 100))
hinc -m $+(warn,$cid,$chan) $nick
if ($len($1-) > 3) && (%p > 60) && ($hget($+(warn,$cid,$chan),$nick)) {
if (%punish.caps == 1) && (!% [ $+ [ $nick ] ]) { msg $chan $nick Using CAPS is considered shouting, so turn off your CAPSLOCK. | set -u600 % [ $+ [ $nick ] ] 1 | return }
if (%punish.capskb == 1) { ban $+(-ku,$calc(%temp.ban * 60)) $chan $nick %bf $eval(%caps.ban,2) }
if (%punish.capsk == 1) && (% [ $+ [ $nick ] ] != 2) { kick $chan $nick $eval(%caps.kick,2) $kcs | inc % [ $+ [ $nick ] ] | return }
hdel $+(warn,$cid,$chan) $nick
unset % [ $+ [ $nick ] ]
And it working, but i want it to:
1: Warn
2: Kick
3: Ban
but i can't get it to first warn, then kick, and last ban.
Now it warn, then warn again, and after that it kick, any ideas on this? or can you point me in the right direction?
$proc return channels the script should be enabled in,
I left out the on *:text:*:#: { since i have 5 other protections in the same section.
Thnx in advance.
; EDIT
No one that have a idea?