Commit 1f4617dd authored by rswindell's avatar rswindell
Browse files

Added "StartingNewUserRegistration" text.dat string: displays at the beginning

of the new user process - could be used to display a file or execute a script
via @-code.
Introduced the "Color Terminal" new user question toggle (defaults to off).
parent 5d619107
......@@ -51,20 +51,7 @@ BOOL sbbs_t::newuser()
long kmode;
bool usa;
#if 0
if(cur_rate<cfg.node_minbps) {
bprintf(text[MinimumModemSpeed],cfg.node_minbps);
sprintf(str,"%stooslow.msg",cfg.text_dir);
if(fexist(str))
printfile(str,0);
sprintf(str,"New user modem speed: %lu<%u"
,cur_rate,cfg.node_minbps);
logline("N!",str);
hangup();
return(FALSE);
}
#endif
bputs(text[StartingNewUserRegistration]);
getnodedat(cfg.node_num,&thisnode,0);
if(thisnode.misc&NODE_LOCK) {
bputs(text[NodeLocked]);
......@@ -175,7 +162,7 @@ BOOL sbbs_t::newuser()
if(useron.misc&ANSI) {
useron.rows=0; /* Auto-rows */
if(useron.misc&(RIP|WIP|HTML) || text[ColorTerminalQ][0]==0 || yesno(text[ColorTerminalQ]))
if(!(cfg.uq&UQ_COLORTERM) || useron.misc&(RIP|WIP|HTML) || text[ColorTerminalQ][0]==0 || yesno(text[ColorTerminalQ]))
useron.misc|=COLOR;
else
useron.misc&=~COLOR;
......
......@@ -118,7 +118,7 @@ typedef struct {
#define LEN_SSNAME 25 /* Sub/Dir short name */
#define LEN_SLNAME 40 /* Sub/Dir long name */
/* User Questions */
/* User Questions (e.g. for new users) */
#define UQ_ALIASES (1L<<0) /* Ask for alias */
#define UQ_LOCATION (1L<<1) /* Ask for location */
#define UQ_ADDRESS (1L<<2) /* Ask for address */
......@@ -139,6 +139,7 @@ typedef struct {
#define UQ_NOCOMMAS (1L<<17) /* Do not require commas in location */
#define UQ_NONETMAIL (1L<<18) /* Don't ask for e-mail/netmail address */
#define UQ_NOUPRLWR (1L<<19) /* Don't force upper/lower case strings */
#define UQ_COLORTERM (1L<<20) /* Ask if new user has color terminal */
/* Different bits in sys_misc */
......
......@@ -807,6 +807,7 @@ enum {
,OperatorPrompt
,AddSubToNewScanQ
,UnvalidatedWarning
,StartingNewUserRegistration
,TOTAL_TEXT
};
......
......@@ -546,8 +546,8 @@ const char * const text_defaults[TOTAL_TEXT]={
"\x72\x65\x61\x6c\x20\x6e\x61\x6d\x65\x3a\x20\x01\x77"
,"\x01\x5f\x01\x62\x01\x68\x5b\x01\x63\xfb\x01\x62\x5d\x20\x01\x79\x45\x6e\x74\x65\x72\x20\x79\x6f\x75\x72\x20\x63\x6f\x6d\x70\x61"
"\x6e\x79\x20\x6e\x61\x6d\x65\x3a\x20\x01\x77"
,"\x01\x5f\x01\x62\x01\x68\x5b\x01\x63\xfb\x01\x62\x5d\x20\x01\x79\x45\x6e\x74\x65\x72\x20\x79\x6f\x75\x72\x20\x63\x68\x61\x74\x20"
"\x68\x61\x6e\x64\x6c\x65\x3a\x20\x01\x77"
,"\x01\x5f\x01\x62\x01\x68\x5b\x01\x63\xfb\x01\x62\x5d\x20\x01\x79\x45\x6e\x74\x65\x72\x20\x79\x6f\x75\x72\x20\x68\x61\x6e\x64\x6c"
"\x65\x20\x6f\x72\x20\x63\x61\x6c\x6c\x2d\x73\x69\x67\x6e\x3a\x20\x01\x77"
,"\x01\x5f\x01\x62\x01\x68\x5b\x01\x63\xfb\x01\x62\x5d\x20\x01\x79\x45\x6e\x74\x65\x72\x20\x79\x6f\x75\x72\x20\x73\x65\x78\x20\x28"
"\x4d\x2f\x46\x29\x3a\x20\x01\x77"
,"\x01\x5f\x01\x62\x01\x68\x5b\x01\x63\xfb\x01\x62\x5d\x20\x01\x79\x45\x6e\x74\x65\x72\x20\x79\x6f\x75\x72\x20\x73\x74\x72\x65\x65"
......@@ -1229,4 +1229,6 @@ const char * const text_defaults[TOTAL_TEXT]={
,"\x01\x6e\x01\x72\x01\x69\x57\x41\x52\x4e\x49\x4e\x47\x3a\x20\x59\x6f\x75\x20\x61\x72\x65\x20\x72\x65\x61\x64\x69\x6e\x67\x20\x6d"
"\x65\x73\x73\x61\x67\x65\x73\x20\x70\x61\x73\x74\x20\x74\x68\x65\x20\x6c\x61\x73\x74\x20\x75\x6e\x76\x61\x6c\x69\x64\x61\x74\x65"
"\x64\x20\x6d\x65\x73\x73\x61\x67\x65\x20\x28\x25\x75\x29"
,"\x01\x6e\x01\x68\x53\x74\x61\x72\x74\x69\x6e\x67\x20\x74\x68\x65\x20\x6e\x65\x77\x20\x75\x73\x65\x72\x20\x72\x65\x67\x69\x73\x74"
"\x72\x61\x74\x69\x6f\x6e\x20\x70\x72\x6f\x63\x65\x73\x73\x2e\x2e\x2e\x0d\x0a"
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment