I simply want the bot not to post the message on a specific channel, when it runs through all the channels it's on.
I think it's something like: if ![$chan = "#channel"]
But I'm really not sure.
If someone could allso give me an example on how to ignore multiple channels, that would be great, but I would be happy if the script just ignores the one channel
# list of channels to make announcements on
set mychanlist "#chan1 #chan2 #chan3 #etc"
proc announce {text} {
foreach chan $::mychanlist {
if {[botonchan $chan]} {
puthelp "privmsg $chan :$text"
}
}
}