TIP: Click on subject to list as thread! ANSI
echo: sync_programming
to: GitLab note in main/sbbs
from: Rob Swindell
date: 2024-11-20 14:52:00
subject: DDMsgReader bug fix: When

https://gitlab.synchro.net/main/sbbs/-/merge_requests/474#note_6035

This is not the proper criteria to determine a message is a ballot.

Compare the message header's `type` property, if its value is equal to `MSG_TYPE_BALLOT`, it's a ballot.

If you want a faster method (no need to read message header), you can tell a message is a ballot from the message's index record: bit-wise AND the index `attr` property with `MSG_VOTE`, if the result is non-zero, message is a ballot:
```
if ((index.attr & MSG_VOTE) != 0) { /* message is a ballot */ }
```
--- SBBSecho 3.23-Linux
    
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.