bind pub - ?errorsteam errorsteam
proc errorsteam { nick host hand chan arg } {
putserv "PRIVMSG $chan : $nick : To fix this problem, you must reboot the steam and try to join again the game, this problem is when you get ticketID error. more info pm @.
}
i want that they cant flood by joining 6 or 7 clones and typing ?errorsteam.
I must be a noob becuse i look for it as you told me. And i don't find it. Could you link me to the antiflood script for public commands so that i can add it to my help script ? Thanks a lot.
bind pub - ?errorsteam errorsteam
proc errorsteam { nick host hand chan arg } {
if {![throttled $host,$chan 30]} {
putserv "PRIVMSG $chan : $nick : To fix this problem, you must reboot the steam and try to join again the game, this problem is when you get ticketID error. more info pm @."
}
}
# user's throttled proc
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
}
}
This allows using the ?errorsteam command only once every 30 seconds.