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

Remove support for deprecated WIP and HTML user settings

WIPterm hasn't been supported in ages and HTMLterm was just an ephemeral
experiment.

Leave the WIP ARS keyword parsing support, for backwards script compatibilty.
parent d672f39b
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -286,10 +286,6 @@ uchar* arstr(ushort* count, const char* str, scfg_t* cfg, uchar* ar_buf) ...@@ -286,10 +286,6 @@ uchar* arstr(ushort* count, const char* str, scfg_t* cfg, uchar* ar_buf)
artype=AR_RIP; artype=AR_RIP;
i+=2; i+=2;
} }
else if(!strnicmp(str+i,"WIP",3)) {
artype=AR_WIP;
i+=2;
}
else if(!strnicmp(str+i,"OS2",3)) { else if(!strnicmp(str+i,"OS2",3)) {
artype=AR_OS2; artype=AR_OS2;
i+=2; i+=2;
...@@ -496,7 +492,6 @@ uchar* arstr(ushort* count, const char* str, scfg_t* cfg, uchar* ar_buf) ...@@ -496,7 +492,6 @@ uchar* arstr(ushort* count, const char* str, scfg_t* cfg, uchar* ar_buf)
arg_expected=TRUE; arg_expected=TRUE;
switch(artype) { switch(artype) {
case AR_RIP: case AR_RIP:
case AR_WIP:
case AR_ANSI: case AR_ANSI:
case AR_PETSCII: case AR_PETSCII:
case AR_ASCII: case AR_ASCII:
......
...@@ -47,11 +47,11 @@ void sbbs_t::batchmenu() ...@@ -47,11 +47,11 @@ void sbbs_t::batchmenu()
bputs(text[NoFilesInBatchQueue]); bputs(text[NoFilesInBatchQueue]);
return; return;
} }
if(useron.misc&(RIP|WIP|HTML) && !(useron.misc&EXPERT)) if(useron.misc&(RIP) && !(useron.misc&EXPERT))
menu("batchxfer"); menu("batchxfer");
lncntr=0; lncntr=0;
while(online && !done && (cfg.upload_dir!=INVALID_DIR || batdn_total() || batup_total())) { while(online && !done && (cfg.upload_dir!=INVALID_DIR || batdn_total() || batup_total())) {
if(!(useron.misc&(EXPERT|RIP|WIP|HTML))) { if(!(useron.misc&(EXPERT|RIP))) {
sys_status&=~SS_ABORT; sys_status&=~SS_ABORT;
if(lncntr) { if(lncntr) {
sync(); sync();
...@@ -74,7 +74,7 @@ void sbbs_t::batchmenu() ...@@ -74,7 +74,7 @@ void sbbs_t::batchmenu()
} }
switch(ch) { switch(ch) {
case '?': case '?':
if(useron.misc&(EXPERT|RIP|WIP|HTML)) if(useron.misc&(EXPERT|RIP))
menu("batchxfr"); menu("batchxfr");
break; break;
case 'C': case 'C':
......
...@@ -188,12 +188,9 @@ bool sbbs_t::ar_exp(const uchar **ptrptr, user_t* user, client_t* client) ...@@ -188,12 +188,9 @@ bool sbbs_t::ar_exp(const uchar **ptrptr, user_t* user, client_t* client)
} }
break; break;
case AR_WIP: case AR_WIP:
if(!term_supports(WIP))
result=_not; result=_not;
else result=!_not;
if(!result) { if(!result) {
noaccess_str=text[NoAccessTerminal]; noaccess_str=text[NoAccessTerminal];
noaccess_val=WIP;
} }
break; break;
case AR_OS2: case AR_OS2:
......
...@@ -442,7 +442,7 @@ bool sbbs_t::pause(bool set_abort) ...@@ -442,7 +442,7 @@ bool sbbs_t::pause(bool set_abort)
pause_hotspot = add_hotspot('\r'); pause_hotspot = add_hotspot('\r');
bputs(text[Pause]); bputs(text[Pause]);
len = bstrlen(text[Pause]); len = bstrlen(text[Pause]);
if(sys_status&SS_USERON && !(useron.misc&(HTML|WIP|NOPAUSESPIN)) if(sys_status&SS_USERON && !(useron.misc&(NOPAUSESPIN))
&& cfg.spinning_pause_prompt) && cfg.spinning_pause_prompt)
l|=K_SPIN; l|=K_SPIN;
ch=getkey(l); ch=getkey(l);
......
...@@ -136,7 +136,7 @@ bool sbbs_t::newuser() ...@@ -136,7 +136,7 @@ bool sbbs_t::newuser()
if(useron.misc&ANSI) { if(useron.misc&ANSI) {
useron.rows = TERM_ROWS_AUTO; useron.rows = TERM_ROWS_AUTO;
useron.cols = TERM_COLS_AUTO; useron.cols = TERM_COLS_AUTO;
if(!(cfg.uq&UQ_COLORTERM) || useron.misc&(RIP|WIP|HTML) || yesno(text[ColorTerminalQ])) if(!(cfg.uq&UQ_COLORTERM) || useron.misc&(RIP) || yesno(text[ColorTerminalQ]))
useron.misc|=COLOR; useron.misc|=COLOR;
else else
useron.misc&=~COLOR; useron.misc&=~COLOR;
......
...@@ -391,7 +391,7 @@ void sbbs_t::qwk_sec() ...@@ -391,7 +391,7 @@ void sbbs_t::qwk_sec()
getusrsubs(); getusrsubs();
delfiles(cfg.temp_dir,ALLFILES); delfiles(cfg.temp_dir,ALLFILES);
while(online) { while(online) {
if((useron.misc&(WIP|RIP|HTML) || !(useron.misc&EXPERT)) if((useron.misc&(RIP) || !(useron.misc&EXPERT))
&& (useron.logons<2 || !(useron.rest&FLAG('Q')))) && (useron.logons<2 || !(useron.rest&FLAG('Q'))))
menu("qwk"); menu("qwk");
action=NODE_TQWK; action=NODE_TQWK;
...@@ -404,7 +404,7 @@ void sbbs_t::qwk_sec() ...@@ -404,7 +404,7 @@ void sbbs_t::qwk_sec()
if(sys_status&SS_ABORT || ch==quit_key() || ch==CR || !online) if(sys_status&SS_ABORT || ch==quit_key() || ch==CR || !online)
break; break;
if(ch=='?') { if(ch=='?') {
if((useron.misc&(WIP|RIP|HTML) || !(useron.misc&EXPERT)) if((useron.misc&(RIP) || !(useron.misc&EXPERT))
&& !(useron.rest&FLAG('Q'))) && !(useron.rest&FLAG('Q')))
continue; continue;
menu("qwk"); menu("qwk");
......
...@@ -763,8 +763,6 @@ int sbbs_t::scanposts(int subnum, int mode, const char *find) ...@@ -763,8 +763,6 @@ int sbbs_t::scanposts(int subnum, int mode, const char *find)
else done=1; else done=1;
continue; continue;
} }
if(useron.misc&WIP)
menu("msgscan");
sync(); sync();
if(unvalidated < smb.curmsg) if(unvalidated < smb.curmsg)
bprintf(text[UnvalidatedWarning],unvalidated+1); bprintf(text[UnvalidatedWarning],unvalidated+1);
......
...@@ -564,9 +564,9 @@ typedef enum { /* Values for xtrn_t.event */ ...@@ -564,9 +564,9 @@ typedef enum { /* Values for xtrn_t.event */
#define COLDKEYS (1<<18) /* No hot-keys */ #define COLDKEYS (1<<18) /* No hot-keys */
#define EXTDESC (1<<19) /* Extended file descriptions */ #define EXTDESC (1<<19) /* Extended file descriptions */
#define AUTOHANG (1<<20) /* Auto-hang-up after transfer */ #define AUTOHANG (1<<20) /* Auto-hang-up after transfer */
#define WIP (1<<21) /* Supports WIP terminal emulation */ #define WIP_UNUSED (1<<21) /* Supports WIP terminal emulation */
#define AUTOLOGON (1<<22) /* AutoLogon via IP */ #define AUTOLOGON (1<<22) /* AutoLogon via IP */
#define HTML (1<<23) /* Using Zuul/HTML terminal */ #define HTML_UNUSED (1<<23) /* Using Zuul/HTML terminal */
#define NOPAUSESPIN (1<<24) /* No spinning cursor at pause prompt */ #define NOPAUSESPIN (1<<24) /* No spinning cursor at pause prompt */
#define PETSCII (1<<26) /* Commodore PET/CBM terminal */ #define PETSCII (1<<26) /* Commodore PET/CBM terminal */
#define SWAP_DELETE (1<<27) /* Swap Delete and Backspace keys */ #define SWAP_DELETE (1<<27) /* Swap Delete and Backspace keys */
...@@ -574,7 +574,7 @@ typedef enum { /* Values for xtrn_t.event */ ...@@ -574,7 +574,7 @@ typedef enum { /* Values for xtrn_t.event */
#define UTF8 (1<<29) /* UTF-8 terminal */ #define UTF8 (1<<29) /* UTF-8 terminal */
#define MOUSE (1U<<31) /* Mouse supported terminal */ #define MOUSE (1U<<31) /* Mouse supported terminal */
#define TERM_FLAGS (ANSI|COLOR|RIP|WIP|HTML|SWAP_DELETE|ICE_COLOR|MOUSE|CHARSET_FLAGS) #define TERM_FLAGS (ANSI|COLOR|RIP|SWAP_DELETE|ICE_COLOR|MOUSE|CHARSET_FLAGS)
#define CHARSET_FLAGS (NO_EXASCII|PETSCII|UTF8) #define CHARSET_FLAGS (NO_EXASCII|PETSCII|UTF8)
#define CHARSET_ASCII NO_EXASCII // US-ASCII #define CHARSET_ASCII NO_EXASCII // US-ASCII
#define CHARSET_PETSCII PETSCII // CBM-ASCII #define CHARSET_PETSCII PETSCII // CBM-ASCII
......
...@@ -91,7 +91,7 @@ void sbbs_t::scansubs(int mode) ...@@ -91,7 +91,7 @@ void sbbs_t::scansubs(int mode)
} }
if(ch==text[SubGroupKeys][0] /* 'S' */) { if(ch==text[SubGroupKeys][0] /* 'S' */) {
if(useron.misc&(RIP|WIP|HTML) && !(useron.misc&EXPERT)) { if(useron.misc&(RIP) && !(useron.misc&EXPERT)) {
menu("msgscan"); menu("msgscan");
} }
i=scanposts(usrsub[curgrp][cursub[curgrp]],mode,str); i=scanposts(usrsub[curgrp][cursub[curgrp]],mode,str);
...@@ -102,7 +102,7 @@ void sbbs_t::scansubs(int mode) ...@@ -102,7 +102,7 @@ void sbbs_t::scansubs(int mode)
return; return;
} }
if(ch==text[SubGroupKeys][1] /* 'G' */) { if(ch==text[SubGroupKeys][1] /* 'G' */) {
if(useron.misc&(RIP|WIP|HTML) && !(useron.misc&EXPERT)) { if(useron.misc&(RIP) && !(useron.misc&EXPERT)) {
menu("msgscan"); menu("msgscan");
} }
for(i=0;i<usrsubs[curgrp] && !msgabort();i++) { for(i=0;i<usrsubs[curgrp] && !msgabort();i++) {
...@@ -197,7 +197,7 @@ void sbbs_t::scanallsubs(int mode) ...@@ -197,7 +197,7 @@ void sbbs_t::scanallsubs(int mode)
} }
} }
if(useron.misc&(RIP|WIP|HTML) && !(useron.misc&EXPERT)) { if(useron.misc&(RIP) && !(useron.misc&EXPERT)) {
menu("msgscan"); menu("msgscan");
} }
if((sub = (uint*)malloc(sizeof(uint) * cfg.total_subs)) == NULL) { if((sub = (uint*)malloc(sizeof(uint) * cfg.total_subs)) == NULL) {
......
...@@ -2044,9 +2044,7 @@ static bool ar_exp(scfg_t* cfg, uchar **ptrptr, user_t* user, client_t* client) ...@@ -2044,9 +2044,7 @@ static bool ar_exp(scfg_t* cfg, uchar **ptrptr, user_t* user, client_t* client)
else result=!not; else result=!not;
break; break;
case AR_WIP: case AR_WIP:
if(user==NULL || !(user->misc&WIP))
result=not; result=not;
else result=!not;
break; break;
case AR_OS2: case AR_OS2:
#ifndef __OS2__ #ifndef __OS2__
......
...@@ -867,7 +867,7 @@ void sbbs_t::maindflts(user_t* user) ...@@ -867,7 +867,7 @@ void sbbs_t::maindflts(user_t* user)
case 'T': case 'T':
if(yesno(text[AutoTerminalQ])) { if(yesno(text[AutoTerminalQ])) {
user->misc |= AUTOTERM; user->misc |= AUTOTERM;
user->misc &= ~(ANSI|RIP|WIP|HTML|PETSCII|UTF8); user->misc &= ~(ANSI|RIP|PETSCII|UTF8);
} }
else else
user->misc &= ~AUTOTERM; user->misc &= ~AUTOTERM;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment