So I'm working on a script to purge someone the first time they say something (%boring) and then time them out for 10 minutes when they say it a second time. But I'm a scrub and can't figure out how to code it D:
any help please?
on *:text:*:#:{
if ($gettok(%boring,%i,44) != $null) {
if ($($+(%,timeout.,$nick),1)) {
msg $chan You were warned! (timeout)
.timer 1 1 msg $chan .timeout $nick 600
}
else ($($+(%,timeout.,$nick),2)) { return }
set -u3600 %timeout. $+ $nick On
msg $chan Rude, $nick (Purge)
.timer 1 1 msg $chan .timeout $nick 1
}
}