Commit 3f17c245 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Don't modify useron.misc during logon, even for AUTOTERM

We shouldn't need to set any of the autoterm flags in useron.misc these days (term_supports() checks autoterm when appropriate).

Try this Nelgin.
parent 9187c26d
Pipeline #2627 passed with stage
in 9 minutes and 30 seconds
......@@ -163,10 +163,7 @@ bool sbbs_t::logon()
}
if(useron.misc&AUTOTERM) {
useron.misc&=~(ANSI|RIP|PETSCII);
useron.misc|=autoterm;
} else if((useron.misc&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);
......
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