It's my first post

if a user on the channel very quickly types 3 lines:
[10:05:15] <user> !kiss Nickname
[10:05:15] <user> !kiss Nickname
[10:05:16] <user> !kiss Nickname
...then bot does this:
[10:05:18] <bot> user kisses Nickname

[10:05:18] <bot> user kisses Nickname

[10:05:19] <bot> user kisses Nickname

What I want is: if user types command !kiss quickly 3 or even 5 times then bot says text only 1 time. How to accomplish that?
Thank You!
Here's my code (hope it will be posted correctly, because of my first post):
Code: Select all
bind pub - !kiss pub_kiss
proc pub_kiss {nick host handle channel testes} {
set who [lindex $testes 0]
if { $who == "" } {
utimer 3 [ list putquick "PRIVMSG $channel $nick does not knows who to kiss" ]
return 1
}
utimer 3 [ list putquick "PRIVMSG $channel $nick kisses $who :)" ]
return 1
}