sorry I iadded the procedure but for some reason it didn't take.
#################################################
# bind bot - mode do_bot_mode
#################################################
# other nets don't know my chans so they give me
# Chanid
# incoming no need for duty comp
proc do_bot_mode { nick command testes } {
global tempchan opschan goodchan mainchan
set chanID [lindex $testes 0]
set who [lindex $testes 1]
set host [lindex $testes 2]
set rest [lrange $testes 3 end]
if {$chanID == "T" } { set cchan $tempchan
} elseif {$chanID == "G" } { set cchan $goodchan
} elseif {$chanID == "O" } { set cchan $opschan
} elseif {$chanID == "M" } { set cchan $mainchan
} else {
putlog "bad ID sent to do_bot_mode $chanID"
return 0
}
set lamahs [chanlist $mainchan]
foreach lamah $lamahs {
if {[maskhost [getchanhost $lamah $mainchan ]] == $host} {
putserv "MODE $cchan $rest $lamah "
broadcast_ops "14æ set mode $rest for $lamah on $cchan"
return 0
}
}
}
#####>>>>> END bind bot - mode do_bot_mode