Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 1ccceb27 authored by Rob Swindell's avatar Rob Swindell 💬

Enable/conform to "use strict" - no functional change.

parent d0e5401b
......@@ -2,10 +2,10 @@
// Synchronet v3.1 Default Logon Module
// $Id: logon.js,v 1.55 2020/05/26 04:21:18 rswindell Exp $
// @format.tab-size 4, @format.use-tabs true
"use strict";
require("sbbsdefs.js", 'SS_RLOGIN');
require("nodedefs.js", 'NODE_QUIET');
if(!bbs.mods.avatar_lib)
......@@ -64,7 +64,7 @@ if ((options.rlogin_auto_xtrn) && (bbs.sys_status & SS_RLOGIN) && (console.termi
if(user.security.restrictions&UFLAG_G) {
while(bbs.online) {
printf("\1y\1hFor our records, please enter your full name: \1w");
printf("\x01y\x01hFor our records, please enter your full name: \x01w");
name=console.getstr(LEN_NAME,K_UPRLWR);
if(!name || !name.length)
continue;
......@@ -74,7 +74,7 @@ if(user.security.restrictions&UFLAG_G) {
}
while(bbs.online) {
printf("\1y\1hPlease enter your e-mail address: \1w");
printf("\x01y\x01hPlease enter your e-mail address: \x01w");
email=console.getstr(LEN_NETMAIL);
if(!email || !email.length)
continue;
......@@ -89,7 +89,7 @@ if(user.security.restrictions&UFLAG_G) {
}
while(bbs.online) {
printf("\1y\1hPlease enter your location (City, State): \1w");
printf("\x01y\x01hPlease enter your location (City, State): \x01w");
location=console.getstr(LEN_LOCATION,K_UPRLWR);
if(!location || !location.length)
continue;
......@@ -105,7 +105,7 @@ if(user.security.restrictions&UFLAG_G) {
if(bbs.online)
bbs.log_str("\r\n");
while(bbs.online) {
printf("\1y\1hWhere did you hear about this BBS?\r\n: \1w");
printf("\x01y\x01hWhere did you hear about this BBS?\r\n: \x01w");
ref=console.getstr(70);
if(!ref || !ref.length)
continue;
......@@ -163,7 +163,7 @@ if(user.security.level==99 /* Sysop logging on */
&& !system.matchuser("guest") /* Guest account does not yet exist */
&& bbs.mods.userprops.get("logon", "makeguest", true) /* Sysop has not asked to stop this question */
) {
if(console.yesno("\1?Create Guest/Anonymous user account (highly recommended)"))
if(console.yesno("\x01?Create Guest/Anonymous user account (highly recommended)"))
load("makeguest.js");
else if(!console.yesno("Ask again later")) {
bbs.mods.userprops.set("logon", "makeguest", false);
......@@ -180,7 +180,7 @@ if(bbs.node_status != NODE_QUIET && ((system.settings&SYS_SYSSTAT) || !user.is_s
bbs.mods.logonlist_lib.add();
// Auto-message
auto_msg=system.data_dir + "msgs/auto.msg"
const auto_msg = system.data_dir + "msgs/auto.msg"
if(file_size(auto_msg)>0) {
console.printfile(auto_msg,P_NOATCODES|P_WORDWRAP);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment