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

New @code SHOW:<ars> to only show text to users meeting ARS

ARS = Access Requirement String
Spaces aren't allowed in the <ars> so you might have to get creative with ARS symbols instead of keywords.
SHOW by itself will re-enable display output for all users.
- for Nelgin
parent f191dfe4
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #824 passed
...@@ -269,6 +269,22 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool ...@@ -269,6 +269,22 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
str[0]=0; str[0]=0;
if(strcmp(sp, "SHOW") == 0) {
console &= ~CON_ECHO_OFF;
return nulstr;
}
if(strncmp(sp, "SHOW:", 5) == 0) {
uchar* ar = arstr(NULL, sp + 5, &cfg, NULL);
if(ar != NULL) {
if(!chk_ar(ar, &useron, &client))
console |= CON_ECHO_OFF;
else
console &= ~CON_ECHO_OFF;
free(ar);
}
return nulstr;
}
if(strcmp(sp, "HOT") == 0) { // Auto-mouse hot-spot attribute if(strcmp(sp, "HOT") == 0) { // Auto-mouse hot-spot attribute
hot_attr = curatr; hot_attr = curatr;
return nulstr; return nulstr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment