Subj : Calling loadable modules from javascript To : nolageek From : Digital Man Date : Fri Mar 05 2021 05:09 pm 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 .