Commit e970d7ee authored by deuce's avatar deuce

Add a NODE_MOFF node_misc bit which disables the automatic printing of

node messages and timeleft warnings.

Requested by xvlxxix for a JS game.
parent d09a2301
......@@ -152,10 +152,12 @@ void sbbs_t::nodesync()
putnodedat(cfg.node_num,&thisnode);
}
}
if(thisnode.misc&NODE_MSGW)
getsmsg(useron.number); /* getsmsg clears MSGW flag */
if(thisnode.misc&NODE_NMSG)
getnmsg(); /* getnmsg clears NMSG flag */
if(!(thisnode.misc&NODE_MOFF)) {
if(thisnode.misc&NODE_MSGW)
getsmsg(useron.number); /* getsmsg clears MSGW flag */
if(thisnode.misc&NODE_NMSG)
getnmsg(); /* getnmsg clears NMSG flag */
}
}
if(cfg.sync_mod[0])
......@@ -185,8 +187,10 @@ void sbbs_t::nodesync()
&& !SYSOP) {
timeleft_warn=5-(timeleft/60);
attr(LIGHTGRAY);
bprintf(text[OnlyXminutesLeft]
,((ushort)timeleft/60)+1,(timeleft/60) ? "s" : nulstr);
if(!(thisnode.misc&NODE_MOFF)) {
bprintf(text[OnlyXminutesLeft]
,((ushort)timeleft/60)+1,(timeleft/60) ? "s" : nulstr);
}
}
attr(atr); /* replace original attributes */
......
......@@ -75,6 +75,7 @@ enum { /* Node Status */
#define NODE_NMSG (1<<11) /* Node message waiting (new way) */
#define NODE_EXT (1<<12) /* Extended info on node action */
#define NODE_LCHAT (1<<13) /* Being pulled into local chat */
#define NODE_MOFF (1<<14) /* Do not display messages */
enum { /* Node Action */
NODE_MAIN /* Main Prompt */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment