Commit 8d69c23e authored by rswindell's avatar rswindell
Browse files

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

parent e25fffb6
......@@ -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"))
wip=1;
if(strstr(str,".RIP"))
rip=1;
p=strrchr(str,'.');
if(p!=NULL) {
if(stricmp(p,".wip")==0)
wip=1;
else if(stricmp(p,".rip")==0)
rip=1;
}
if(mode&P_NOABORT || wip || rip) {
if(online==ON_REMOTE && console&CON_R_ECHO) {
......
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