Commit a8915a8d authored by deuce's avatar deuce

Use a sys_status bit rather than a node bit for MOFF.

parent ec021a4c
......@@ -152,7 +152,7 @@ void sbbs_t::nodesync()
putnodedat(cfg.node_num,&thisnode);
}
}
if(!(thisnode.misc&NODE_MOFF)) {
if(!(sys_status&SS_MOFF)) {
if(thisnode.misc&NODE_MSGW)
getsmsg(useron.number); /* getsmsg clears MSGW flag */
if(thisnode.misc&NODE_NMSG)
......@@ -186,8 +186,8 @@ void sbbs_t::nodesync()
if(sys_status&SS_USERON && online && (timeleft/60)<(5-timeleft_warn)
&& !SYSOP) {
timeleft_warn=5-(timeleft/60);
attr(LIGHTGRAY);
if(!(thisnode.misc&NODE_MOFF)) {
if(!(sys_status&SS_MOFF)) {
attr(LIGHTGRAY);
bprintf(text[OnlyXminutesLeft]
,((ushort)timeleft/60)+1,(timeleft/60) ? "s" : nulstr);
}
......
......@@ -75,7 +75,6 @@ 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 */
......
......@@ -652,6 +652,7 @@ typedef enum { /* Values for xtrn_t.event */
#define SS_RLOGIN (1L<<26) /* Current login via BSD RLogin */
#define SS_FILEXFER (1L<<27) /* File transfer in progress, halt spy */
#define SS_SSH (1L<<28) /* Current login via SSH */
#define SS_MOFF (1L<<29) /* Disable automatic messages */
/* Bits in 'mode' for getkey and getstr */
#define K_NONE 0 /* Use as a place holder for no mode flags */
......
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