From c097ace29e49e0de4a4466a9718f533e8d89a29c Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sat, 27 Mar 2021 21:56:38 -0700
Subject: [PATCH] Run the "inactive_hangup" option through parseInt()

Just in case it was read as a string (e.g. had a ; comment following the value)
---
 exec/login.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/login.js b/exec/login.js
index 5c34a90247..494810278f 100644
--- a/exec/login.js
+++ b/exec/login.js
@@ -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++) {
-- 
GitLab