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.
Old posts that have not been replied to for several years.
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Aug 01, 2002 5:01 pm
...
Last edited by
caesar on Wed Aug 07, 2002 12:36 pm, edited 1 time in total.
D
Drewbu
Post
by Drewbu » Sun Aug 04, 2002 3:00 pm
try this
set channels "#foo #chan1 #chan2"
and
foreach chan_t $channels {
if {$chan_t == $chan} {
YOUR CODE HERE
} else {
return 0
}
}
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sun Aug 04, 2002 4:26 pm
I have a problem when I'm tryng to incr val to more than 1 channel. I'm tryng to make it incr the val for 2 or more channels. Btw.. I consider more eficient the "if {[lsearch -exact $x(channels) $chan] == -1} {return
0}" like I made it.
Thanks anyway