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

Handle NODE_CUSTOM action and print default node status

"performing custom action"

Normally, the sysop would set the NodeActionCustom text.dat string
to override this.
parent 2b9ecc58
Branches
Tags
No related merge requests found
Pipeline #7316 passed
......@@ -592,6 +592,9 @@ void sbbs_t::printnodedat(uint number, node_t* node)
case NODE_SYSP:
bputs("performing sysop activities");
break;
case NODE_CUSTOM:
bputs("performing custom action");
break;
default:
bputs(ultoa(node->action,tmp,10));
break;
......
......@@ -387,9 +387,13 @@ void printnodedat(int number, node_t node)
case NODE_SYSP:
printf("performing sysop activities");
break;
case NODE_CUSTOM:
printf("performing custom action");
break;
default:
fputs(itoa(node.action,tmp,10),stdout);
break; }
break;
}
printf(" %s",node_connection_desc(node.connection,tmp));
if(node.action==NODE_DLNG) {
if((node.aux/60)>=12) {
......
......@@ -1570,6 +1570,9 @@ char* nodestatus(scfg_t* cfg, node_t* node, char* buf, size_t buflen, int num)
case NODE_SYSP:
strcat(str,"performing sysop activities");
break;
case NODE_CUSTOM:
SAFECAT(str, "performing custom action");
break;
default:
sprintf(str+strlen(str),"%d",node->action);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment