From 88cef39afc51baf131c5a41f8f16d532c6330327 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Tue, 25 Jan 2022 22:16:19 -0800 Subject: [PATCH] Beautification of the previous commit And don't store the autoterm flags in useron.misc even when correcting a manual-PETSCII configuration. --- src/sbbs3/logon.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sbbs3/logon.cpp b/src/sbbs3/logon.cpp index 4dd00ca453..17991b9107 100644 --- a/src/sbbs3/logon.cpp +++ b/src/sbbs3/logon.cpp @@ -162,11 +162,10 @@ bool sbbs_t::logon() } } - - if(((useron.misc & (AUTOTERM | PETSCII)) == PETSCII) && (autoterm&ANSI)) { + if(((useron.misc & (AUTOTERM | PETSCII)) == PETSCII) && (autoterm & ANSI)) { // User manually-enabled PETSCII, but they're logging in with an ANSI (auto-detected) terminal useron.misc &= ~PETSCII; - useron.misc |= (AUTOTERM | autoterm); + useron.misc |= AUTOTERM; } if(!chk_ar(cfg.shell[useron.shell]->ar,&useron,&client)) { -- GitLab