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 » Sat Dec 15, 2001 4:18 pm
Hi! Any sugestion to add a except for this: "foreach member [chanlist $channel] {" ? Thx!
Petersen
Owner
Posts: 685 Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK
Post
by Petersen » Sat Dec 15, 2001 7:06 pm
Code: Select all
foreach member [chanlist $channel] {
if {whatever except condition you wanna test} {continue}
....
}
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sat Dec 15, 2001 9:10 pm
As I did read and see this "[chanlist $channel]" dose the rest of the code to all users from top to bottom of the "$channel", including him with no exception of any kind. How to do you sugest to make one for some users? Thx!
Petersen
Owner
Posts: 685 Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK
Post
by Petersen » Sun Dec 16, 2001 12:19 am
Didn't I just tell you this? I'll be more specific. For example
Code: Select all
foreach member [chanlist $channel] {
if {($member = lameuser) || [matchattr [nick2hand $member $channel] n|n $channel]} {continue}
....
}
Won't run .... on lameuser, or any n|n user for that chan.
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sun Dec 16, 2001 10:50 am
I see. Thx!