From b45c623bc658f5134d1511cfc2e9a8a25a76b5a1 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 31 May 2020 21:00:21 +1000 Subject: [PATCH] Fix user settings on login. --- install.txt | 2 ++ logon.js | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/install.txt b/install.txt index ae5258b..90c14ec 100644 --- a/install.txt +++ b/install.txt @@ -13,3 +13,5 @@ Installation nodes. - logon.js will force users to ansitex shell - to make a ini config setting for this - Optionally System -> New User Values -> Shells ->Ansitex - Optionally Edit users and change their shell. +4 - Turn off sysop password required for sysop login + - SCFG -> Toggle Options -> Require Sys Pass During Login -> No diff --git a/logon.js b/logon.js index b9893c3..9316bef 100644 --- a/logon.js +++ b/logon.js @@ -11,8 +11,10 @@ system.settings |= (SYS_NOSYSINFO | SYS_NONODELIST); // @note: Unable to suppress "Logging on to as ..." // Need to suppress Search for new messages & files -user.settings &= ~(USER_ASK_SSCAN & USER_ASK_NSCAN & USER_ANFSCAN); -user.settings &= ~USER_PAUSE; +user.settings &= ~(USER_ASK_SSCAN | USER_ASK_NSCAN | USER_ANFSCAN | USER_PAUSE | USER_NO_EXASCII); // Enable ANSI and some other settings -user.settings |= (USER_ANSI & USER_COLOR & USER_COLDKEYS); +user.settings |= (USER_AUTOTERM | USER_ANSI | USER_COLOR | USER_COLDKEYS); + +// Disable Chatting +user.chat_settings |= (CHAT_NOPAGE | CHAT_NOACT);