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

Display the actual reason a user can't download a file

... rather than just the CantDownloadFromDir text.dat string for all reasons.
parent 48cffb9c
Branches
Tags
No related merge requests found
...@@ -990,9 +990,10 @@ int sbbs_t::listfileinfo(const int dirnum, const char *filespec, const int mode) ...@@ -990,9 +990,10 @@ int sbbs_t::listfileinfo(const int dirnum, const char *filespec, const int mode)
} }
continue; continue;
} }
if (!user_can_download(&cfg, f->dir, &useron, &client, /* reason: */ NULL)) { uint reason;
if (!user_can_download(&cfg, f->dir, &useron, &client, &reason)) {
sync(); sync();
bputs(text[CantDownloadFromDir]); bputs(text[reason]);
mnemonics(text[QuitOrNext]); mnemonics(text[QuitOrNext]);
if (getkeys(keys, 0) == quit_key()) { if (getkeys(keys, 0) == quit_key()) {
found = -1; found = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment