https://gitlab.synchro.net/main/sbbs/-/commit/f761c6ddd6e492824bd44863
Modified Files:
docs/v322_new.md src/sbbs3/readmsgs.cpp
Log Message:
Terminal Server: skip Scan Msgs module for sub-boards with nothing new
When a Scan Msgs loadable module is configured and a Scan Subs module is
not, a new-message scan of a group or of all groups invoked the module once
per sub-board, including every sub-board with no new messages, and each invocation is costly.
For a new-message scan (without SCAN_BACK) of a sub-board the user can
read, check for messages past the user's scan pointer first. When there
are none, skip the module and let the existing early exits print the
"0 new" status line and clamp the pointers, as the stock reader always has.
The check is made only when a Scan Msgs module is configured.
DDMsgReader, as the Scan Msgs module, passes new-message scans to the stock reader, so its output is unchanged. A module that shows its own scan status does so as the Scan Subs module, which is invoked once per scan.
Fixes #1438
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net