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

stop reading file upon Ctrl-Z when CPM_EOF mode flag used

parent 3c0c020f
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2013 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -262,15 +262,15 @@ char sbbs_t::putmsg(const char *buf, long mode)
if(i) /* if valid string, go to top */
continue;
}
if(!(mode&P_CPM_EOF) || str[l]!=CTRL_Z) {
outchar(str[l]);
if(mode&P_CPM_EOF && str[l]==CTRL_Z)
break;
outchar(str[l]);
#if 0
if(!(mode&P_HTML) && !exatr && !outchar_esc && lncntr && lbuflen && cols && ++col==cols)
lncntr++;
else
col=0;
#endif
}
l++;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment