Commit 67edda73 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Automatically switch back from PETSCII to ANSI mode

If the user's terminal was auto-detected as being ANSI, yet they had their
account settings manually-overridden to use PETSCII, automatically switch
back to auto-terminal mode (e.g. with ANSI).
parent 7658b682
......@@ -180,6 +180,10 @@ bool sbbs_t::logon()
if(useron.misc&AUTOTERM) {
useron.misc&=~(ANSI|RIP|PETSCII);
useron.misc|=autoterm;
} else if((useron.misc&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);
}
if(!chk_ar(cfg.shell[useron.shell]->ar,&useron,&client)) {
......
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