So maybe i need to clarify what exactly i am trying to do to see if my expectations can actually be achieved.
Let's say i want to time out a particular word,
my code would look like this:
on *:text:test:#: {
msg # .timeout $nick 1
}
Now, sometimes the user doesn't actually get timed out. Normally what i would do is add a timer to time them out twice to make sure. I've seen even this not work, and since there is a timeout_success that get's sent back I wanted to use this to timeout people.
My code now would look like:
on *:text:test:#: {
var %t = 2
while (%t) {
if (timeout_success != $msgtags(msg-id).key) { msg # .timeout $nick 1 | dec %t }
}
if (timeout_success == $msgtags(msg-id).key) {
echo -a success
}
}
Does that make sense? Or am I insane and should just keep doing timers that time out a user twice?