Skip to content
Snippets Groups Projects
Commit 4c44bf61 authored by rswindell's avatar rswindell
Browse files

Create aliases for the MAILW:<num>, MAILP:<num>, and SPAMW:<num> @-codes:

  MAILW#<num>, MAILP#<num>, SPAMW#<num>

These codes, unlike the colon-variants, can be combined with format modifiers
(e.g. -L, etc.).
parent f930b307
No related branches found
No related tags found
No related merge requests found
......@@ -1055,17 +1055,17 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen)
return(str);
}
if(!strncmp(sp,"MAILW:",6)) {
if(!strncmp(sp,"MAILW:",6) || !strncmp(sp,"MAILW#",6)) {
safe_snprintf(str,maxlen,"%u",getmail(&cfg,atoi(sp+6), /* Sent: */FALSE, /* attr: */0));
return(str);
}
if(!strncmp(sp,"MAILP:",6)) {
if(!strncmp(sp,"MAILP:",6) || !strncmp(sp,"MAILP#",6)) {
safe_snprintf(str,maxlen,"%u",getmail(&cfg,atoi(sp+6), /* Sent: */TRUE, /* attr: */0));
return(str);
}
if(!strncmp(sp,"SPAMW:",6)) {
if(!strncmp(sp,"SPAMW:",6) || !strncmp(sp,"SPAMW#",6)) {
safe_snprintf(str,maxlen,"%u",getmail(&cfg,atoi(sp+6), /* Sent: */FALSE, /* attr: */MSG_SPAM));
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