• exec/scancfg.jsctrl/main.ini modopts.ini docs/v322_new.md src/sbbs3/lo

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sun Nov 15 12:22:42 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/74af0ecdb86eee0a6770e4c1
    Added Files:
    exec/scancfg.js
    Modified Files:
    ctrl/main.ini modopts.ini docs/v322_new.md src/sbbs3/load_cfg.c scansubs.cpp src/sbbs3/scfg/scfgsys.c src/sbbs3/scfgdefs.h scfglib1.c scfgsave.c
    Log Message:
    New loadable module: Scan Config (scancfg.js), on select_item.js

    The message scan configuration lists (new-scan and your-scan) and the
    new-scan pointer lists, bbs.cfg_msg_scan() and bbs.cfg_msg_ptrs(), now
    run a "Scan Config" loadable module when one is set
    (SCFG->System->Loadable Modules->Scan Config, the "scancfg" key of
    main.ini), invoked as "<module> cfg <mode>" or "<module> ptrs". The
    built-in lists remain, and are what runs when no module is set.

    The stock module, scancfg.js, displays the same group and sub-board lists
    with the same text.dat strings and prompts, through select_item.js: a
    list longer than the screen is paged, the navigation keys move the
    default item when one is marked, Enter then chooses it, Find searches
    the names, and the default item and page are kept from one change to the
    next. The modopts.ini [scancfg] options are selected_item_prefix, unselected_item_prefix, selected_item_attr, lightbar and more_fmt;
    without the first three the lists look as the built-in ones do.

    The new-scan pointer for a date, and the date a pointer is at, are found
    by a binary search of the message index (MsgBase.get_msg_index).

    The compiled-in default is no module, so that a sysop can clear the
    option to get the built-in lists back; the stock main.ini sets it to
    scancfg. An existing system keeps the built-in lists until its sysop
    sets the option.

    The size of scfg_t changes, so everything that loads the configuration
    needs rebuilding together (sbbsctrl included).

    Built with MSVC (Release, Win32) only.

    Issue #1350

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)