the below works fine until the timer times out and tries to
unset the var. it can not find the value of "$av_temp"
I just want to unset the varaible.
<Zia> [07:54] Tcl error in script for 'timer49':
<Zia> [07:54] can't read "av_temp": no such variable
Any ideas?
Code: Select all
set voice_ban_time 7
proc voice:cntrl {stuff} {
global botnick stuff
set av_temp [getchanhost $victim $chan]
set voice_ban([lindex [split $av_temp @] end]) 1
timer $voice_ban_time {unset voice_ban([lindex [split $av_temp @] end])}
}