Skip to content
Snippets Groups Projects
Commit acb37e7b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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 1a43f2d0
No related branches found
No related tags found
No related merge requests found
...@@ -180,6 +180,10 @@ bool sbbs_t::logon() ...@@ -180,6 +180,10 @@ bool sbbs_t::logon()
if(useron.misc&AUTOTERM) { if(useron.misc&AUTOTERM) {
useron.misc&=~(ANSI|RIP|PETSCII); useron.misc&=~(ANSI|RIP|PETSCII);
useron.misc|=autoterm; 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)) { 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