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

Don't allow sysops to page or send messages to nodes without a useron

Fix a long standing bug where by sysops could page for chat or send node
messages or telegrams to any node, even if there wasn't a user even connected.

Regular users were not affected by this bug.
parent 197f7351
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6363 passed
......@@ -1217,7 +1217,7 @@ int sbbs_t::getnodetopage(int all, int telegram)
j=atoi(str);
if(j && j<=cfg.sys_lastnode && j<=cfg.sys_nodes) {
getnodedat(j,&node,0);
if(node.status!=NODE_INUSE && !SYSOP) {
if(node.useron == 0 || (node.status!=NODE_INUSE && !SYSOP)) {
bprintf(text[NodeNIsNotInUse],j);
return(0);
}
......
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