setudef flag relaycommand
bind pub - !command cmd:proc
proc cmd:proc { nick uhost hand chan args } {
if {[channel get $chan relaycommand]} {
putlog "detected !command and +relaycommand was set to this channel - $chan"
}
}
is it possible in some way that i'm not able to figure out or find out by reading available documentation, to be able to add, beneath that "putlog" command, to use putallbots WITHOUT specifying a channel within the putall bots command .. and be able to have the other bot that receives the putallbots command be able to know which channel to send text to base off of 'setudef'
hopefully this make sense.. i really hope it does and that someone can shine some lite for me
Last edited by kenh83 on Sat Sep 11, 2010 8:29 am, edited 1 time in total.
...
foreach channel [channels] {
if {[channel get $channel relaycommand]} {
#This channel is set +relaycommand, so do something here...
puthelp "PRIVMSG $channel :Woobie!"
}
}