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

Add line 8 (user's real name) to DOORFILE.SR (Solar Realms' drop file)

Apparently this line was added at some point, not sure if it's actually used
in any doors, but here it is anyway.
parent 2962e4a5
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -888,14 +888,20 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl ...@@ -888,14 +888,20 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
return; return;
} }
safe_snprintf(str, sizeof(str), "%s\n%d\n%d\n%lu\n%lu\n%u\n%lu\n" /* from SRE0994B's SRDOOR.DOC:
,name /* Complete name of user */ * The main change from 3.1 was the addition of line 8,
,INT_TO_BOOL(term & ANSI) /* ANSI ? */ * the "Real Name" line. This line will be used in the
,!INT_TO_BOOL(term & NO_EXASCII) /* IBM characters ? */ * future for BRE's "dupe-checking" feature.
,rows /* Page length */ */
,dte_rate /* Baud rate */ safe_snprintf(str, sizeof(str), "%s\n%d\n%d\n%lu\n%lu\n%u\n%lu\n%s\n"
,online==ON_LOCAL ? 0:cfg.com_port /* COM port */ ,name // Complete name or handle of user
,MIN((tleft/60), INT16_MAX) /* Time left (in minutes) */ ,INT_TO_BOOL(term & ANSI) // ANSI status: 1 = yes, 0 = no, -1 = don't know
,!INT_TO_BOOL(term & NO_EXASCII) // IBM Graphic characters: 1 = yes, 0 = no, -1 = unknown
,rows // Page length of screen, in lines. Assume 25 if unknown
,dte_rate // Baud Rate: 300, 1200, 2400, 9600, 19200, etc.
,online==ON_LOCAL ? 0:cfg.com_port // Com Port: 1, 2, 3, or 4.
,MIN((tleft/60), INT16_MAX) // Time Limit: (in minutes); -1 if unknown.
,useron.name // Real name (the same as line 1 if not known)
); );
lfexpand(str,misc); lfexpand(str,misc);
fwrite(str, strlen(str), 1, fp); fwrite(str, strlen(str), 1, fp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment