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.
I've seen at least one BBS that did something like that, though I'm not sure if it's using a module that's publicly available.
afinix wrote to Digital Man, Nightfox <=-
Re: Module to initiate login
By: Digital Man to Nick Young on Mon Jul 24 2023 11:01 am
Thank you both, managed to sort it out with help from codefenix!
Would you mind sharing the solution that you came up with?
CyberNix wrote to Gamgee <=-
Would you mind sharing the solution that you came up with?
Sure. Codefenix gave me some code that executes as soon as a
connection is made and just prints out to press ESC or "%". If
either key is not pressed within 10 seconds, then call
bbs.hangup(), and if the key is pressed then execute the rest of
the login script.
I see. Is this code copyrighted.... or shareable... ?
CyberNix wrote to Gamgee <=-
Re: Re: Module to initiate login
By: Gamgee to CyberNix on Wed Jul 26 2023 08:30 am
I see. Is this code copyrighted.... or shareable... ?
Not copyrighted, see: https://gist.github.com/nickshanks347/9b73f1dd5b998a46f68bd339a641
6104
Pay attention to the code you're adding as the existing code will
now be nested inside a for loop so ensure you include a "}"
before bbs.hangup() (on the last line).
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 11:36:15 |
Calls: | 101 |
Calls today: | 1 |
Files: | 4,671 |
Messages: | 216,124 |