This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Need help with this procedure

Old posts that have not been replied to for several years.
Locked
X
Xeon

Need help with this procedure

Post by Xeon »

I need help with this procedure, I added a new channel on irc and i need to add it to this procedure.
I had 4 cheannels on irc and now i have 5. how does it get the "T" value or any of the other values if {$chanID == "T" } { set cchan $tempchan
#################################################
# 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

Can any of you answer this question?
Locked