Commit ba410049 authored by rswindell's avatar rswindell
Browse files

Renamed to stripattr() to strip_invalid_attr().

parent 0e1c9b2c
...@@ -359,7 +359,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode) ...@@ -359,7 +359,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
l=i; l=i;
str1[l]=0; str1[l]=0;
strcpy(strout,str1); strcpy(strout,str1);
if((stripattr(strout) || ins) && !(mode&K_NOECHO)) if((strip_invalid_attr(strout) || ins) && !(mode&K_NOECHO))
redrwstr(strout,i,l,K_MSG); redrwstr(strout,i,l,K_MSG);
if(mode&K_LINE && !(mode&K_NOECHO)) if(mode&K_LINE && !(mode&K_NOECHO))
attr(LIGHTGRAY); attr(LIGHTGRAY);
...@@ -388,7 +388,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode) ...@@ -388,7 +388,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
str1[i]=0; str1[i]=0;
if(ch==SP && !(mode&K_CHAT)) { /* don't wrap a space */ if(ch==SP && !(mode&K_CHAT)) { /* don't wrap a space */
strcpy(strout,str1); /* as last char */ strcpy(strout,str1); /* as last char */
if(stripattr(strout) && !(mode&K_NOECHO)) if(strip_invalid_attr(strout) && !(mode&K_NOECHO))
redrwstr(strout,i,l,K_MSG); redrwstr(strout,i,l,K_MSG);
if(!(mode&K_NOECHO)) if(!(mode&K_NOECHO))
CRLF; CRLF;
...@@ -401,7 +401,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode) ...@@ -401,7 +401,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
if(x<(maxlen/2)) { if(x<(maxlen/2)) {
wordwrap[1]=0; /* only wrap one character */ wordwrap[1]=0; /* only wrap one character */
strcpy(strout,str1); strcpy(strout,str1);
if(stripattr(strout) && !(mode&K_NOECHO)) if(strip_invalid_attr(strout) && !(mode&K_NOECHO))
redrwstr(strout,i,l,K_MSG); redrwstr(strout,i,l,K_MSG);
if(!(mode&K_NOECHO)) if(!(mode&K_NOECHO))
CRLF; CRLF;
...@@ -414,7 +414,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode) ...@@ -414,7 +414,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
strrev(wordwrap); strrev(wordwrap);
str1[x]=0; str1[x]=0;
strcpy(strout,str1); strcpy(strout,str1);
if(stripattr(strout) && !(mode&K_NOECHO)) if(strip_invalid_attr(strout) && !(mode&K_NOECHO))
redrwstr(strout,i,x,(char)mode); redrwstr(strout,i,x,(char)mode);
if(!(mode&K_NOECHO)) if(!(mode&K_NOECHO))
CRLF; CRLF;
...@@ -450,7 +450,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode) ...@@ -450,7 +450,7 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
str1[l]=0; str1[l]=0;
if(!(sys_status&SS_ABORT)) { if(!(sys_status&SS_ABORT)) {
strcpy(strout,str1); strcpy(strout,str1);
if((stripattr(strout) || ins) && !(mode&K_NOECHO)) if((strip_invalid_attr(strout) || ins) && !(mode&K_NOECHO))
redrwstr(strout,i,l,K_MSG); } redrwstr(strout,i,l,K_MSG); }
else else
l=0; l=0;
......
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