Skip to content
Snippets Groups Projects
Commit 7d4513c7 authored by rswindell's avatar rswindell
Browse files

When auto-terminal-type detection is enabled, always use those term flags,

don't use the stored user terminal type. This allows the same user (e.g.
the sysop) to be logged onto multiple nodes concurrently with different
terminal types without effecting the other node/session.
Guest sessions were already immune to this problem.
parent 24cc9af0
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,7 @@ void sbbs_t::backspace(void)
/****************************************************************************/
long sbbs_t::term_supports(long cmp_flags)
{
long flags = sys_status&SS_USERON ? useron.misc : autoterm;
long flags = ((sys_status&SS_USERON) && !(useron.misc&AUTOTERM)) ? useron.misc : autoterm;
return(cmp_flags ? ((flags&cmp_flags)==cmp_flags) : (flags&TERM_FLAGS));
}
......
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