• Calling loadable modules from javascript

    From nolageek@CAPSHRIL to All on Fri Mar 5 15:34:10 2021
    What is the different between the loadable modules Scan Subs and Scan Msgs?

    When the Scan Subs loadable module is executed - how does the module know what time of scan is being done? (New msgs, messages to me, etc..)

    And, can I use this in an external js file... I know this doesn't exist, but is there something like bbs.exec_loadable_module(DDScanSubs, SCAN_TOYOU);

    |01-|03nolageek

    ---
    ■ Synchronet ■ Capitol Shrill BBS - Washington, DC - capitolshrill.com
  • From Digital Man to nolageek on Fri Mar 5 17:09:38 2021
    Re: Calling loadable modules from javascript
    By: nolageek to All on Fri Mar 05 2021 03:34 pm

    What is the different between the loadable modules Scan Subs and Scan Msgs?

    The F1 help from SCFG says:
    Scan Msgs Executed when a user reads or scans a message sub-board
    Scan Subs Executed when a user scans one or more sub-boards for msgs

    To elaborate, the "Scan Msgs" module scans/reads a *single* sub-board. "Scan Subs" module is called when scanning multiple subs.

    When the Scan Subs loadable module is executed - how does the module know what time of scan is being done? (New msgs, messages to me, etc..)

    The second argument is the 'mode' value (number) - a combination of SCAN_* bit-flags.

    And, can I use this in an external js file... I know this doesn't exist, but is there something like bbs.exec_loadable_module(DDScanSubs, SCAN_TOYOU);

    You'd do that by calling bbs.scan_subs(SCAN_TOYOU) and whatever "Scan Subs" module is configured (if there is one) will be executed.
    --
    digital man

    Synchronet/BBS Terminology Definition #68:
    SIGHUP = Hangup signal sent to a process when its controlling terminal is closed
    Norco, CA WX: 71.6°F, 31.0% humidity, 8 mph E wind, 0.00 inches rain/24hrs