Re: Validating a moderated message
By: Nightfox to All on Sat Jan 21 2017 18:10:49
This is the code I have for the method:
if ((msgHdr.attr & MSG_VALIDATED) == 0)
{
msgHdr.attr &= MSG_VALIDATED;
Try: msgHdr.attr |= MSG_VALIDATED;
The & operator returns 1 wherever the bits in both operands are set. The | operator returns a 1 wherever a bit in either operand is set.
('a&=b' is basically shorthand for 'a=a&b', as 'a|=b' is to 'a=a|b'.)
---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com