noob request
please add a timer that kills the utimer
if an op does !secureoff
obvoisly you guys know the timer continues after it is started
so the op does !secureoff the script runs the off switch
but after the timer runs its course it displays the msg again
in the !secureoff proc it would be cool if the timer was killed
so nothing else happens if the op does !secureoff before the timer ends
or what would be even better is if the bot notes the topic before it changes it and then after secure off it changes it back to what it was before ... that is way outa my know how... thank you
here is the script
#Commands
bind pub o !secureon pub_do_secureon
bind pub o !secureoff pub_do_secureoff
proc pub_do_secureoff {nick host handle channel txt} {
putquick "mode $channel -mis"
putserv "PRIVMSG $channel : 4CHANNEL IS NO LONGER IN SECURE MODE"
putserv "topic $channel : 4 Welcome to $channel"
return 1
}
proc pub_do_secureon {nick host handle channel txt} {
putserv "PRIVMSG $channel : 4CHANNEL IS NOW IN SECURE MODE - PLEASE WAIT!"
putquick "MODE $channel +mis"
putquick "topic $channel : 4CHANNEL IS NOW IN SECURE MODE - PLEASE WAIT!"
timer 3 [list pub_do_secureoff $nick $host $handle $channel $txt]
return 1
}
thank you for your help
Atomic