there is a tcl cleans channel ban list every x time?
x=the time u set like 20 min
Code: Select all
proc remove:bans {} {
foreach bans [chanbans #channel] {
pushmode "#channel" "-b" "[lindex $bans 0]"
}
timer 20 remove:bans
}
if {![regexp remove:bans [timers]]} {
timer 20 remove:bans
}
'regexp' is alot slower than 'string match', you should only use regexp for complex jobs....Xpert wrote:Code: Select all
proc remove:bans {} { foreach bans [chanbans #channel] { pushmode "#channel" "-b" "[lindex $bans 0]" } timer 20 remove:bans } if {![regexp remove:bans [timers]]} { timer 20 remove:bans }
Code: Select all
if {![string match *remove:bans* [timers]]} {
timer 20 remove:bans
}
I was under the impression that this would do the exact same thing with no need for tcl...?CooLB0Y wrote:there is a tcl cleans channel ban list every x time?
x=the time u set like 20 min