Commit 88cef39a authored by Rob Swindell's avatar Rob Swindell 💬
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
......@@ -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)) {
......
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