Skip to content
Snippets Groups Projects
Commit 7be3e9c5 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

When editing the current/online user, copy the auto-term settings to user rec

(user_t.misc, User.settings), when enabling auto-terminal detection. This is
similar to what we do in logon.cpp already:

	useron.misc |= (AUTOTERM | autoterm);

We used to have this logic in useredit.cpp, but was removed in commit
8a71ab16, probably due to editing offline users (e.g. in ;uedit sysop
comand). So just do the copy of autoterm flags when editing the *current*
(online) user. This likely addresses the original concern in that commit.

And it fixes issue #853, thanks to Deuce for root-causing
parent bf1a2d4c
No related branches found
No related tags found
1 merge request!488Overhaul LZH code
Pipeline #7528 passed
......@@ -388,6 +388,8 @@ while(bbs.online && !js.terminated) {
thisuser.settings |= USER_AUTOTERM;
thisuser.settings &=
~(USER_ANSI | USER_RIP | USER_WIP | USER_HTML | USER_PETSCII | USER_UTF8);
if (user.number === thisuser.number)
thisuser.settings |= console.autoterm;
}
else if (!console.aborted)
thisuser.settings &= ~USER_AUTOTERM;
......
......@@ -869,6 +869,8 @@ void sbbs_t::maindflts(user_t* user)
if(yesno(text[AutoTerminalQ])) {
user->misc |= AUTOTERM;
user->misc &= ~(ANSI|RIP|PETSCII|UTF8);
if(user == &useron)
user->misc |= autoterm;
}
else
user->misc &= ~AUTOTERM;
......
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