Commits (2)
...@@ -426,7 +426,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl ...@@ -426,7 +426,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
,node_dir /* 33: Path to MAIN directory */ ,node_dir /* 33: Path to MAIN directory */
,data_dir /* 34: Path to GEN directory */ ,data_dir /* 34: Path to GEN directory */
,cfg.sys_op /* 35: Sysop name */ ,cfg.sys_op /* 35: Sysop name */
,nulstr /* 36: Alias name */ ,useron.handle /* 36: Alias name */
,0 // sys_eventtime/60 /* 37: Event time HH:MM */ ,0 // sys_eventtime/60 /* 37: Event time HH:MM */
,0 // sys_eventtime%60 ,0 // sys_eventtime%60
,'Y'); /* 38: Error correcting connection */ ,'Y'); /* 38: Error correcting connection */
...@@ -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);
......