Not trying to bash your script.. just some constructive criticism..
Instead of
.timerKick $+ $nick
I would have used something like this:
.timer. $+ $nick $+ .kick
or
$+(.timer.,$nick,.kick)
So I could do this:
.timer. $+ $nick $+ .* off
or
$+(.timer.,$nick,.*) off
Which lets you start as many warning/kick timers as you want, and eliminates the need to add corresponding .timer off lines.
Since I'm here, I'll post my code:
alias badnick {
;$1=nick
;Return 1 if nick is not allowed.
if ($1 == bob) return 1
;The below line should be last
return 0
}
on *:JOIN:#:checkit $nick 0
on *:NICK:checkit $newnick $nick
on *:QUIT:checkit 0 $nick
on *:PART:#:checkit 0 $nick
on *:KICK:#:checkit 0 $knick
alias checkit {
;$1=addnick, $2=delnick
if (($1 != 0) && ($badnick($1))) {
$+(.timer.,$1,.Join) 1 5 msg $1 Change your nickname, please.
$+(.timer.,$1,.Warn) 1 150 msg $1 Change your nickname. Final Warning.
$+(.timer.,$1,.Kick) 1 300 ban -k $chan $1 9 Restricted nickname.
}
if ($2 != 0) $+(.timer.,$2,.*) off
}
-genius_at_work