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

More accurate (case insensitive) check for .wip and .rip file extensions.

parent e25fffb6
Branches
Tags
No related merge requests found
......@@ -44,15 +44,19 @@
/****************************************************************************/
void sbbs_t::printfile(char *str, long mode)
{
char HUGE16 *buf;
char* buf;
char* p;
int file,wip=0,rip=0;
long length,savcon=console;
FILE *stream;
if(strstr(str,".WIP"))
p=strrchr(str,'.');
if(p!=NULL) {
if(stricmp(p,".wip")==0)
wip=1;
if(strstr(str,".RIP"))
else if(stricmp(p,".rip")==0)
rip=1;
}
if(mode&P_NOABORT || wip || rip) {
if(online==ON_REMOTE && console&CON_R_ECHO) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment