Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 53235542 authored by Rob Swindell's avatar Rob Swindell 💬

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
...@@ -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;
......
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