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

Commit c5d69236 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Don't abort the file-info edit prompts if no uploader name is entered

parent c5bdb264
Pipeline #2282 passed with stage
in 9 minutes and 6 seconds
...@@ -346,8 +346,10 @@ bool sbbs_t::editfileinfo(file_t* f) ...@@ -346,8 +346,10 @@ bool sbbs_t::editfileinfo(file_t* f)
char uploader[LEN_ALIAS + 1]; char uploader[LEN_ALIAS + 1];
SAFECOPY(uploader, f->from); SAFECOPY(uploader, f->from);
bputs(text[EditUploader]); bputs(text[EditUploader]);
if(!getstr(uploader, sizeof(uploader), K_EDIT|K_AUTODEL)) getstr(uploader, sizeof(uploader), K_EDIT|K_AUTODEL);
return false; return false;
if(*uploader != '\0' || *f->from != '\0')
smb_new_hfield_str(f, SMB_FILEUPLOADER, uploader); smb_new_hfield_str(f, SMB_FILEUPLOADER, uploader);
ultoa(f->cost,str,10); ultoa(f->cost,str,10);
bputs(text[EditCreditValue]); bputs(text[EditCreditValue]);
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