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.

Join moderator..

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Join moderator..

Post by caesar »

...
Last edited by caesar on Wed Aug 07, 2002 12:36 pm, edited 1 time in total.
D
Drewbu

Post by Drewbu »

try this
set channels "#foo #chan1 #chan2"

and
foreach chan_t $channels {
if {$chan_t == $chan} {
YOUR CODE HERE
} else {
return 0
}
}
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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. :P Thanks anyway :)
Locked