Commit 618d552a authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Search file's tags, author, and author's group (if available)

When searching descriptions for text, include these new metadata fields in the content to search.
parent 0562a5ac
Pipeline #2567 passed with stage
in 9 minutes and 37 seconds
......@@ -140,13 +140,17 @@ int sbbs_t::listfiles(uint dirnum, const char *filespec, FILE* tofile, long mode
char* p = (f->desc == NULL) ? NULL : strcasestr(f->desc, filespec);
if(p == NULL)
p = strcasestr(f->name, filespec);
if(p == NULL && f->extdesc != NULL)
p = strcasestr((char*)f->extdesc, filespec);
if(p == NULL && f->tags != NULL)
p = strcasestr(f->tags, filespec);
if(p == NULL && f->author != NULL)
p = strcasestr(f->author, filespec);
if(p == NULL && f->author_org != NULL)
p = strcasestr(f->author_org, filespec);
if(p == NULL) {
if(f->extdesc != NULL)
p = strcasestr((char*)f->extdesc, filespec);
if(p == NULL) {
m++;
continue;
}
m++;
continue;
}
}
if(useron.misc&BATCHFLAG && letter=='A' && found && !tofile
......
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