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

Add new @-code: PROT, user's default file transfer protocol (character)

This fixes issue #629
parent a518a2ac
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4713 passed
......@@ -651,6 +651,10 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, int* pmode, bool
if(strcmp(sp, "TMP") == 0)
return useron.tmpext;
if(strcmp(sp, "PROT") == 0) {
safe_snprintf(str, maxlen, "%c", useron.prot);
return str;
}
if(strcmp(sp, "SEX") == 0) {
safe_snprintf(str, maxlen, "%c", useron.sex);
return str;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment