Skip to content
Snippets Groups Projects
Commit b575f205 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 9a9c26f4
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Finish editing this message first!
Please register or to comment