From 894475869fe7738b6599ae8e4ac471d31139262d Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 13 Jul 2007 08:40:31 +0000 Subject: [PATCH] Store the current IP address and hostname in the user record even if/when they hangup/disconnect during the logon process. --- src/sbbs3/answer.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/sbbs3/answer.cpp b/src/sbbs3/answer.cpp index 7352d4d4c2..1f52e1abb0 100644 --- a/src/sbbs3/answer.cpp +++ b/src/sbbs3/answer.cpp @@ -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); } -- GitLab