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

Don't send NodeLoggedOn message to any nodes if user isn't being logged-on

If user is being kicked off for being on "More than one node at a time", then
don't send a message to other any other nodes that the user logged-on
successfully (they haven't). Previosuly, it'd send messages to all the
lower-numbered nodes that were in-use (but not by the same user).

Reported by Nelgin.
parent f315f34c
Branches
Tags
No related merge requests found
Pipeline #5986 failed
......@@ -526,7 +526,7 @@ bool sbbs_t::logon()
getsmsg(useron.number); /* Moved from further down */
sync();
c=0;
for(i=1;i<=cfg.sys_nodes;i++)
for(i=1;i<=cfg.sys_nodes;i++) {
if(i!=cfg.node_num) {
getnodedat(i,&node,0);
if(!(cfg.sys_misc&SM_NONODELIST)
......@@ -546,6 +546,11 @@ bool sbbs_t::logon()
hangup();
return(false);
}
}
}
for(i=1;i<=cfg.sys_nodes;i++) {
if(i!=cfg.node_num) {
getnodedat(i,&node,0);
if(thisnode.status!=NODE_QUIET
&& (node.status==NODE_INUSE || node.status==NODE_QUIET)
&& !(node.misc&NODE_AOFF) && node.useron!=useron.number) {
......@@ -555,6 +560,7 @@ bool sbbs_t::logon()
,connection));
}
}
}
if(cfg.sys_exp_warn && useron.expire && useron.expire>now /* Warn user of coming */
&& (useron.expire-now)/(1440L*60L)<=cfg.sys_exp_warn) /* expiration */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment