I am using this snippet
Code: Select all
proc throttled {id time} {
   global throttled
   if {[info exists throttled($id)]} {
      return 1
   } {
      set throttled($id) [clock sec]
      utimer $time [list unset throttled($id)]
      return 0
   }
}Code: Select all
if {[throttled $nick 30]} {
      tggamemsgd3 $nick "$nick, please try again in 30 seconds"
   } else {
      tggamemsgd2 $chan "$text: test success"
}[09:55] <Grievers> 111
[09:55] <Grievers> 222
[09:55] <%bots> 222: test success
the first text, always be ignored by bot, only the second one bot will be start counting. I have no idea why that happen. After "222" it start counting 30s , but why not on "111" ? why the bot didn't reply on 111 ?
If new nick type something, the first text also have problem.
or there is anyway to stop ppl doing flood !rank on game ? without kick or banned them.
Thanks in advance

 just for triggering something .. anyway I try you code, same problem occur...
 just for triggering something .. anyway I try you code, same problem occur...