From 7e971bec8c74dba8c3c4a525616f1b15aaad56dd Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sat, 2 Jul 2011 02:20:14 +0000
Subject: [PATCH] Added default JavaScript key=value pairs and comments next to
 section tags.

---
 ctrl/sbbs.ini | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/ctrl/sbbs.ini b/ctrl/sbbs.ini
index 89db111d0c..313b6396a7 100644
--- a/ctrl/sbbs.ini
+++ b/ctrl/sbbs.ini
@@ -31,8 +31,24 @@
 ; Supported log levels in decreasing severity (ala syslog):
 ; Emergency, Alert, Critical, Error, Warning, Notice, Informational, Debugging
 	LogLevel=Debugging
+; JavaScript values can be specified here *and* in server-specific sections
+; JavaScript values specified in server-specific sections will over-ride the global values
+; Maximum allocation of memory per JS run-time:
+	JavaScriptMaxBytes = 8M
+; Maximum stack size per JS context:
+	JavaScriptContextStack = 16K
+; Maximum stack size per JS stack:
+	JavaScriptThreadStack	= 256K
+; Maximum number of loops (branch callbacks) before auto-termination of script:
+	JavaScriptBranchLimit	= 99999999
+; Garbage Collection interval (in branch callbacks):
+	JavaScriptGcInterval = 100
+; Time-slice yield interval (in branch callbacks):
+	JavaScriptYieldInterval = 10000
+; Comma-separated list of load paths (relative to exec or mods directories):
+	JavaScriptLoadPath = load
 
-[BBS]
+[BBS]	Terminal Server
 ; Set to 'false' to disable Telnet/Rlogin/Event server:
 	AutoStart=true
 ; Set to IP address of network interface (or blank for default):
@@ -104,7 +120,7 @@
 ; 	MUTE
 Options = XTRN_MINIMIZED | SYSOP_AVAILABLE | USE_2ND_RLOGIN | ALLOW_RLOGIN | ALLOW_SSH
 
-[Mail]
+[Mail]	SMTP/POP3 Mail Server
 	AutoStart=true
 	MaxClients=10
 	MaxInactivity=120
@@ -162,7 +178,7 @@ Options = XTRN_MINIMIZED | SYSOP_AVAILABLE | USE_2ND_RLOGIN | ALLOW_RLOGIN | ALL
 ; 	MUTE			- Don't play sound files
 Options=ALLOW_POP3
 
-[FTP]
+[FTP]	FTP Server
 	AutoStart=true
 	Port=21
 	MaxClients=10
@@ -203,7 +219,7 @@ Options=ALLOW_POP3
 ; 	MUTE
 Options=INDEX_FILE | HTML_INDEX_FILE | ALLOW_QWK
 
-[Web]
+[Web]	Web (HTTP) Server
 	AutoStart=true
 	Interface=
 	Port=80
-- 
GitLab