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

Fix hungry-matching of "NODEx" @-code

The 5th character must be a digit.

Prevent future stupidity such as happened with recently added and then
fixed NODE_USER @-code.
parent ad12b9b2
No related branches found
No related tags found
No related merge requests found
......@@ -941,7 +941,7 @@ const char* sbbs_t::atcode(const char* sp, char* str, size_t maxlen, int* pmode,
if(strcmp(sp, "NODE_USER") == 0)
return thisnode.misc&NODE_ANON ? text[UNKNOWN_USER] : useron.alias;
if(!strncmp(sp,"NODE",4)) {
if(!strncmp(sp,"NODE",4) && IS_DIGIT(sp[4])) {
i=atoi(sp+4);
if(i && i<=cfg.sys_nodes) {
getnodedat(i,&node,0);
......
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