Is there a way to freeze a user's time remaining before entering IRC chat? I want to limit the time user's have to do things like playing doors, but not if they just want to sit around and chat. I use a js script to run the BBS and the line it executes to enter chat is simply:
bbs.exec("?chat_sec");
Re: Freeze time remaining entering chat
By: NeoArata to All on Wed Jul 17 2024 10:18 am
Is there a way to freeze a user's time remaining before entering
IRC chat? I want to limit the time user's have to do things like
playing doors, but not if they just want to sit around and chat. I
use a js script to run the BBS and the line it executes to enter
chat is simply:
bbs.exec("?chat_sec");
That line would invoke the chat section/menu (chat_sec.js), not the
IRC client (irc.js). To allow the user to spend forever in the IRC
client and not have that time count "against" them, you'd configure
the IRC client as an external program in SCFG->External
Programs->Online Programs with "Spendended (Free) Time" set to "Yes"
and then invoke the IRC client with the bbs.exec_xtrn() function.
chat_sec.js invokes irc.js using the bbs.exec() function, so that'd
have to be changed if you want to continue to use chat_sec.js to
invoke the irc client.
Another option would be to modify chat_sec.js to add the consumed
time while in the irc client back to the user's online time. This
would be accomplished by adding the elapse time (in seconds) to the bbs.start_time JS property value.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 410 |
Nodes: | 16 (2 / 14) |
Uptime: | 84:11:41 |
Calls: | 8,580 |
Calls today: | 4 |
Files: | 13,228 |
Messages: | 5,932,603 |