on *:text:!timer*:#: {
if ($nick == x3pos || $nick isop) {
if ($2 == $null || $3 == $null || $4 == $null || $3 !isnum) { msg # insufficient parameters: !timer <timername> <repeat sec> <msg> | return }
if ($timer($2).secs) { msg # You already have timer called $2 | return }
.timer $+ $2 0 $3 msg # $4-
msg # Timer $2 created and will repeat every $3 seconds! to stop use !stoptimer <timername>
}
else {
msg # You cant use this command!
}
}
on *:text:!stoptimer*:#: {
if ($nick == x3pos || $nick isop) {
if ($timer($2).secs) {
.timer $+ $2 off
msg # Timer $2 stopped
}
else { msg # There is no timer called $2 }
}
else {
msg # You cant use this command!
}
}