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

Fixed gettmplt bug introduced in last rev (template string must be converted...

Fixed gettmplt bug introduced in last rev (template string must be converted to uppercase for propper parsing).
Fixed ^X bug that was there before.
parent ad070150
No related branches found
No related tags found
No related merge requests found
...@@ -435,6 +435,7 @@ uint sbbs_t::gettmplt(char *strout,char *templt, long mode) ...@@ -435,6 +435,7 @@ uint sbbs_t::gettmplt(char *strout,char *templt, long mode)
sys_status&=~SS_ABORT; sys_status&=~SS_ABORT;
sprintf(tmplt, "%.*s",sizeof(tmplt)-1, templt); sprintf(tmplt, "%.*s",sizeof(tmplt)-1, templt);
strupr(tmplt);
if(useron.misc&ANSI) { if(useron.misc&ANSI) {
if(mode&K_LINE) { if(mode&K_LINE) {
if(useron.misc&COLOR) if(useron.misc&COLOR)
...@@ -467,11 +468,12 @@ uint sbbs_t::gettmplt(char *strout,char *templt, long mode) ...@@ -467,11 +468,12 @@ uint sbbs_t::gettmplt(char *strout,char *templt, long mode)
bputs(" \b"); bputs(" \b");
continue; } continue; }
if(ch==24) { /* Ctrl-X */ if(ch==24) { /* Ctrl-X */
for(c--;c!=0xff;c--) { for(;c;c--) {
outchar(BS); outchar(BS);
if(tmplt[c]=='N' || tmplt[c]=='A' || tmplt[c]=='!') if(tmplt[c-1]=='N' || tmplt[c-1]=='A' || tmplt[c-1]=='!')
bputs(" \b"); } bputs(" \b");
c=0; } }
}
else if(c<t) { else if(c<t) {
if(tmplt[c]=='N' && !isdigit(ch)) if(tmplt[c]=='N' && !isdigit(ch))
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment