| View previous topic :: View next topic |
| Author |
Message |
Xeon Guest
|
Posted: Fri Aug 08, 2003 12:01 am Post subject: Need help with this procedure |
|
|
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? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|