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:

Code:
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:

Code:
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?

Last edited by keyeslol; 13/11/15 09:36 PM.