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

Store the current IP address and hostname in the user record even if/when they

hangup/disconnect during the logon process.
parent 16e3abef
Branches
Tags
No related merge requests found
......@@ -417,8 +417,6 @@ bool sbbs_t::answer()
if(!useron.number)
hangup();
if(!online)
return(false);
/* Save the IP to the user's note */
if(cid[0]) {
......@@ -432,10 +430,14 @@ bool sbbs_t::answer()
putuserrec(&cfg,useron.number,U_COMP,LEN_COMP,useron.comp);
}
if(!online)
return(false);
if(!(sys_status&SS_USERON)) {
errormsg(WHERE,ERR_CHK,"User not logged on",0);
hangup();
return(false); }
return(false);
}
return(true);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment