Skip to content
Snippets Groups Projects
Commit 88cef39a authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Beautification of the previous commit

And don't store the autoterm flags in useron.misc even when correcting a manual-PETSCII configuration.
parent 3f17c245
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment