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

Use Deuce's new removecase() macro/function - no need to use fexistcase() now.

parent 6e092180
No related branches found
No related tags found
No related merge requests found
...@@ -246,7 +246,7 @@ bool sbbs_t::writemsg(char *fname, char *top, char *title, long mode, int subnum ...@@ -246,7 +246,7 @@ bool sbbs_t::writemsg(char *fname, char *top, char *title, long mode, int subnum
if(useron.xedit && cfg.xedit[useron.xedit-1]->misc&XTRN_LWRCASE) if(useron.xedit && cfg.xedit[useron.xedit-1]->misc&XTRN_LWRCASE)
strlwr(tmp); strlwr(tmp);
sprintf(str,"%s%s",cfg.node_dir,tmp); sprintf(str,"%s%s",cfg.node_dir,tmp);
remove(str); removecase(str);
} }
if(!online || sys_status&SS_ABORT) { if(!online || sys_status&SS_ABORT) {
...@@ -337,9 +337,9 @@ bool sbbs_t::writemsg(char *fname, char *top, char *title, long mode, int subnum ...@@ -337,9 +337,9 @@ bool sbbs_t::writemsg(char *fname, char *top, char *title, long mode, int subnum
if(cfg.xedit[useron.xedit-1]->misc&XTRN_SH) if(cfg.xedit[useron.xedit-1]->misc&XTRN_SH)
ex_mode|=EX_SH; ex_mode|=EX_SH;
if(!linesquoted && fexistcase(msgtmp)) if(!linesquoted)
remove(msgtmp); removecase(msgtmp);
if(linesquoted) { else {
qlen=flength(msgtmp); qlen=flength(msgtmp);
qtime=fdate(msgtmp); qtime=fdate(msgtmp);
} }
...@@ -517,8 +517,7 @@ void sbbs_t::editor_inf(int xeditnum,char *dest, char *title, long mode ...@@ -517,8 +517,7 @@ void sbbs_t::editor_inf(int xeditnum,char *dest, char *title, long mode
} }
else { else {
SAFEPRINTF(str,"%sRESULT.ED",cfg.node_dir); SAFEPRINTF(str,"%sRESULT.ED",cfg.node_dir);
if(fexistcase(str)) removecase(str);
remove(str);
strcpy(tmp,"EDITOR.INF"); strcpy(tmp,"EDITOR.INF");
if(cfg.xedit[xeditnum]->misc&XTRN_LWRCASE) if(cfg.xedit[xeditnum]->misc&XTRN_LWRCASE)
strlwr(tmp); strlwr(tmp);
...@@ -903,14 +902,12 @@ void sbbs_t::editfile(char *fname) ...@@ -903,14 +902,12 @@ void sbbs_t::editfile(char *fname)
maxlines=cfg.level_linespermsg[useron.level]; maxlines=cfg.level_linespermsg[useron.level];
sprintf(path,"%sQUOTES.TXT",cfg.node_dir); sprintf(path,"%sQUOTES.TXT",cfg.node_dir);
if(fexistcase(path)) removecase(path);
remove(path);
if(useron.xedit) { if(useron.xedit) {
msg_tmp_fname(useron.xedit, msgtmp, sizeof(msgtmp)); msg_tmp_fname(useron.xedit, msgtmp, sizeof(msgtmp));
if(fexist(msgtmp)) removecase(msgtmp);
remove(msgtmp);
SAFECOPY(path,fname); SAFECOPY(path,fname);
if(fexistcase(path)) if(fexistcase(path))
...@@ -1199,8 +1196,7 @@ void sbbs_t::editmsg(smbmsg_t *msg, uint subnum) ...@@ -1199,8 +1196,7 @@ void sbbs_t::editmsg(smbmsg_t *msg, uint subnum)
return; return;
msg_tmp_fname(useron.xedit, msgtmp, sizeof(msgtmp)); msg_tmp_fname(useron.xedit, msgtmp, sizeof(msgtmp));
if(fexist(msgtmp)) removecase(msgtmp);
remove(msgtmp);
msgtotxt(msg,msgtmp,0,1); msgtotxt(msg,msgtmp,0,1);
editfile(msgtmp); editfile(msgtmp);
length=flength(msgtmp); length=flength(msgtmp);
......
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