Re: Module to initiate login
By: Nick Young to All on Mon Jul 24 2023 10:51 am
Hello,
Wondering if there's a loadable module out there that prompts the user to press a key to initiate the login module.
For example, the user calls and before they even get to the User Name prompt, they have to click ESC in order for the User Name prompt to show. If they don't press the key within 'n' time, then the user is disconnected.
That would just be a couple of extra lines added exec/login.js (copy to your "mods" directory first) - no need for a separate loadable module.
Something like:
require("key_defs.js", "KEY_ESC");
console.print("Press ESC to login");
if(console.inkey(5000) != KEY_ESC)
bbs.hangup();
'5000' here is your 'n' time (in milliseconds).
--
digital man (rob)
Synchronet/BBS Terminology Definition #63:
REP = QWK Reply
Norco, CA WX: 87.5øF, 51.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)