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

Report the telegram waiting and node-msg waiting statuses separately (M and N)

I noticed that the node status displayed by load/presence_lib.js (e.g. used
by exec/nodelist.js) would have (N) for node-message waiting instead of (M)
as is reported in other places (e.g. the node utility, umonitor, sbbsctrl).
So this commit commonizes this behavior.

Now, it's crazy that there are (at least) 3 places that this node status
display is implemented and more things should just use nodestatus() to get
that string, but I'm not solving that copy/pasta issue in this commit.
parent ee9c7223
No related branches found
No related tags found
No related merge requests found
......@@ -407,8 +407,10 @@ void printnodedat(int number, node_t node)
putchar('A');
if(node.misc&NODE_LOCK)
putchar('L');
if(node.misc&(NODE_MSGW|NODE_NMSG))
if(node.misc&NODE_MSGW)
putchar('M');
if(node.misc&NODE_NMSG)
putchar('N');
if(node.misc&NODE_POFF)
putchar('P');
putchar(')');
......
......@@ -1399,8 +1399,10 @@ char* nodestatus(scfg_t* cfg, node_t* node, char* buf, size_t buflen, int num)
strcat(str,"A");
if(node->misc&NODE_LOCK)
strcat(str,"L");
if(node->misc&(NODE_MSGW|NODE_NMSG))
if(node->misc&NODE_MSGW)
strcat(str,"M");
if(node->misc&NODE_NMSG)
strcat(str,"N");
if(node->misc&NODE_POFF)
strcat(str,"P");
strcat(str,")");
......
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