Skip to content
Snippets Groups Projects
Commit c097ace2 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Run the "inactive_hangup" option through parseInt()

Just in case it was read as a string (e.g. had a ; comment following the value)
parent e9bbe0c3
Branches
Tags
No related merge requests found
......@@ -25,7 +25,7 @@ var guest = options.guest && system.matchuser("guest");
if(!bbs.online)
exit();
if(!(console.autoterm&(USER_ANSI | USER_PETSCII | USER_UTF8))) {
console.inactivity_hangup = options.inactive_hangup;
console.inactivity_hangup = parseInt(options.inactive_hangup, 10);
log(LOG_NOTICE, "terminal not detected, reducing inactivity hang-up timeout to " + console.inactivity_hangup + " seconds");
}
for(var c=0; c < options.login_prompts; c++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment