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.

why

Old posts that have not been replied to for several years.
Locked
M
Misho

Post by Misho »

matchattr validhand |b #validchan is always 1?!?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

cos you can never have |b, so it defaults to 1
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

IMHO, this is the wrong behaviour.

If somthing is done wrong, there should either be an error (not required, as it would be fatal in instances like this), or the function should return FALSE (0).

Regardless of the fact that the channel flag +b does not exist, the user does not have it, thus it shoulodn't return 1.

I also noticed that matchattr is returning 1 on "matchattr ppslim ||b #channel". If memory serves me correct, you should also be able to match bot flag using the matchattr system (no reason why we shouldn't). As such, it's telling me i'm a bot, which I aint.
Locked