Skip to content
Snippets Groups Projects
Commit 46c1a013 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Search of word in descriptions should match filenames too.

Especially now that now all files even have descriptions (e.g. when super long filenames suffice).
parent 0601a9c1
No related branches found
No related tags found
No related merge requests found
...@@ -146,6 +146,8 @@ int sbbs_t::listfiles(uint dirnum, const char *filespec, FILE* tofile, long mode ...@@ -146,6 +146,8 @@ int sbbs_t::listfiles(uint dirnum, const char *filespec, FILE* tofile, long mode
#endif #endif
if(mode&(FL_FINDDESC|FL_EXFIND)) { if(mode&(FL_FINDDESC|FL_EXFIND)) {
p = (f->desc == NULL) ? NULL : strcasestr(f->desc, filespec); p = (f->desc == NULL) ? NULL : strcasestr(f->desc, filespec);
if(p == NULL)
p = strcasestr(f->name, filespec);
if(!(mode&FL_EXFIND) && p==NULL) { if(!(mode&FL_EXFIND) && p==NULL) {
m++; m++;
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment