Skip to content
Snippets Groups Projects
Commit 53235542 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 fbbdb154
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -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