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

nodemsg (private message prompt) now only checks node record once a second.

parent c6d2cd17
Branches
Tags
No related merge requests found
......@@ -1210,6 +1210,7 @@ void sbbs_t::nodemsg()
char tmp[512];
int i,usernumber,done=0;
node_t node,savenode;
time_t last=0;
if(nodemsg_inside>1) /* nested once only */
return;
......@@ -1231,26 +1232,29 @@ void sbbs_t::nodemsg()
break;
if(sys_status&SS_ABORT)
break;
getnodedat(cfg.node_num,&thisnode,0);
if(thisnode.misc&(NODE_MSGW|NODE_NMSG)) {
lncntr=0; /* prevent pause prompt */
SAVELINE;
CRLF;
if(thisnode.misc&NODE_NMSG)
getnmsg();
if(thisnode.misc&NODE_MSGW)
getsmsg(useron.number);
CRLF;
RESTORELINE; }
else
nodesync();
gettimeleft();
checkline(); }
if(last!=now && getnodedat(cfg.node_num,&thisnode,false)==0) {
if(thisnode.misc&(NODE_MSGW|NODE_NMSG)) {
lncntr=0; /* prevent pause prompt */
SAVELINE;
CRLF;
if(thisnode.misc&NODE_NMSG)
getnmsg();
if(thisnode.misc&NODE_MSGW)
getsmsg(useron.number);
CRLF;
RESTORELINE; }
else
nodesync();
last=now;
}
gettimeleft(); // sets 'now'
}
if(!online || sys_status&SS_ABORT) {
sys_status&=~SS_ABORT;
CRLF;
break; }
break;
}
switch(toupper(ch)) {
case 'T': /* Telegram */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment