Skip to content
Snippets Groups Projects
Commit d8794e1a 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 0be3b222
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Finish editing this message first!
Please register or to comment