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.

Except..

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

Post by caesar »

Hi! Any sugestion to add a except for this: "foreach member [chanlist $channel] {" ? Thx!
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

Code: Select all

foreach member [chanlist $channel] {
if {whatever except condition you wanna test} {continue}
....
}
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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!
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

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.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I see. Thx!
Locked