set chan1 "#foo"
set chan2 "#zoo"
bind pub -|- !op op
bind pubm - *!op* repeat_pubm
proc op {nick host hand chan text} {
set ochan [lindex $text 0]
set cause [lrange $text 1 end]
set first_char [string index $rchan 0]
set key [join [lrange [split $text] 1 end]]
if { $chan == #foo } {
if { $first_char != "#"} {
putserv "privmsg $chan1 : Sorry this is not valid. You can ONLY be opped in (#)channels."
} elseif { $key == ""} { putserv "privmsg $::chan1 : You must give the key for op." } else {
putserv "privmsg $::chan2 : Result ---> $nick ($host) is requesting to be opped in $ochan"
putserv "privmsg $::chan2 : Cause ---> : $Cause"
putserv "privmsg $::chan1 Hello $nick : You have been opped successfully.
}}}}
Is it possible to somehow not trigger the 'proc op' for 10 seconds if the command !op is used 3 times within 5 seconds? I am not really good with timers.