Skip to content
Snippets Groups Projects
Commit 2127eb9d authored by rswindell's avatar rswindell
Browse files

Fixes for when module section is missing from ctrl/modopts.ini.

parent d1051841
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ load("asc2htmlterm.js");
var options = load("modopts.js", "logon");
// Check if we're being asked to auto-run an external (web interface external programs section uses this)
if ((options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.terminal.indexOf("xtrn=") === 0)) {
if (options && (options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.terminal.indexOf("xtrn=") === 0)) {
var external_code = console.terminal.substring(5);
if (!bbs.exec_xtrn(external_code)) {
alert(log(LOG_ERR,"!ERROR Unable to launch external: '" + external_code + "'"));
......@@ -227,7 +227,8 @@ if(user.security.level==99 /* Sysop logging on */
// Set rlogin_xtrn_menu=true in [logon] section of ctrl/modopts.ini
// if you want your RLogin server to act as a door game server only
if(options.rlogin_xtrn_menu
if(options
&& options.rlogin_xtrn_menu
&& bbs.sys_status&SS_RLOGIN) {
bbs.xtrn_sec();
bbs.hangup();
......
......@@ -21,7 +21,8 @@ if(!user.address.length && user.number>1) {
user.address=console.getstr(30,K_LINE);
}
if(options.ask_qnet
if(options
&& options.ask_qnet
&& !console.noyes("\r\nIs this account to be used for QWK Networking (DOVE-Net)\1b")
&& !console.noyes("\r\n\1bARE YOU \1wPOSITIVE\1n\1h\1b (If you're unsure, press '\1wN\1b')"))
qnet=true;
......@@ -87,7 +88,8 @@ if(qnet) {
user.security.exemptions|=UFLAG_M;
}
if(options.ask_sysop
if(options
&& options.ask_sysop
&& !console.noyes("\r\n\1bAre you a sysop of a \1wSynchronet\1b BBS (unsure, hit '\1wN\1b')")) {
user.security.flags1|=UFLAG_S;
if(qnet) {
......@@ -102,7 +104,8 @@ if(options.ask_sysop
/* Send New User Welcome E-mail */
/********************************/
welcome_msg = system.text_dir + "welcome.msg";
if(options.send_newuser_welcome && file_exists(welcome_msg) && !qnet && user.number>1)
if(options
&& options.send_newuser_welcome && file_exists(welcome_msg) && !qnet && user.number>1)
send_newuser_welcome_msg(welcome_msg);
function send_newuser_welcome_msg(fname)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment