how can i use something such as setudf or similar to make changable variables, or a variable list for certain channels to send messsages to?
for example.. i have a bot sending news updates to a channel, is there a way i can use setudf together with foreach.. to easily set and unset multiple channels where the news updates will be sent to?
setudef flag sendnews
# Inside your proc which sends the news:
foreach chan [channels] {
if {[channel get $chan sendnews]} {
# send the news to $chan
}
}
This way the news will be sent to +sendnews channels.