Code: Select all
# list of channels
set thechanlist "#chanA #chanB #chanC"
proc whereisthebot {} {
global thechanlist
foreach chan $::thechanlist {
if {[botonchan $chan]} {
putlog "$botnick is on $chan"
}
}
}
Now, whenever I set the variable thechanlist to "#chanC #chanA #chanB" for example ... then the foreach loop just goes over ChanC and doesn't go over the two other chans.
I don't get it. What does the variable thechanlist have to do with the bot's .conf file ?