hi,
my problem is the following:
i want to make tcl for my eggdrop which puts mode +i if there are more than 10 joins in 1 minute
how can i do this? i dont know how to use/set the timer
please help
misterys
Code: Select all
bind join - * lock:i
proc lock:i {nick uhost hand chan} {
global countj
if {![info exists countj([set chan [string tolower $chan]])]} { set countj($chan) 0 }
incr countj($chan)
timer 1 [list incr countj($chan) -1]
if {$countj($chan) == 10} {
putquick "MODE $chan +i" -next
}
}