...
 
Commits (1)
  • Rob Swindell's avatar
    Manual terminal settings were cleared when logging in via SSH or RLogin · 2df371fe
    Rob Swindell authored
    This appears to go back to a change Deuce made in 2004 (rev 1.41) where ANSI, COLOR, RIP and WIP user terminal settings were always cleared when logging in via RLogin.
    
    I happened to notice that manually enabling iCE color support wasn't working when logging in via RLogin (the iCE color flag would be cleared every login, but worked fine when logging in via Telnet). Upon investigation, I found that *all* user's manual terminal settings were cleared for either RLogin or SSH logins (copy/pasted bug). So... stop doing that. The method of dynamic terminal capability detection/checking has changed since 2004, so we should not need to mess with the user's misc flags.
    2df371fe
......@@ -109,7 +109,6 @@ bool sbbs_t::answer()
useron.number=matchuser(&cfg, rlogin_name, /* sysop_alias: */FALSE);
if(useron.number) {
getuserdat(&cfg,&useron);
useron.misc&=~TERM_FLAGS;
SAFEPRINTF(path,"%srlogin.cfg",cfg.ctrl_dir);
if(!findstr(client.addr,path)) {
SAFECOPY(tmp, rlogin_pass);
......@@ -213,7 +212,6 @@ bool sbbs_t::answer()
useron.number=matchuser(&cfg, rlogin_name, /* sysop_alias: */FALSE);
if(useron.number) {
getuserdat(&cfg,&useron);
useron.misc&=~TERM_FLAGS;
for(i=0;i<3 && online;i++) {
if(stricmp(tmp,useron.pass)) {
if(cfg.sys_misc&SM_ECHO_PW)
......