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

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

parent f2083b42
No related branches found
No related tags found
No related merge requests found
......@@ -346,9 +346,11 @@ bool sbbs_t::editfileinfo(file_t* f)
char uploader[LEN_ALIAS + 1];
SAFECOPY(uploader, f->from);
bputs(text[EditUploader]);
if(!getstr(uploader, sizeof(uploader), K_EDIT|K_AUTODEL))
getstr(uploader, sizeof(uploader), K_EDIT|K_AUTODEL);
if(msgabort(true))
return false;
smb_new_hfield_str(f, SMB_FILEUPLOADER, uploader);
if(*uploader != '\0' || *f->from != '\0')
smb_new_hfield_str(f, SMB_FILEUPLOADER, uploader);
ultoa(f->cost,str,10);
bputs(text[EditCreditValue]);
getstr(str,10,K_NUMBER|K_EDIT|K_AUTODEL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment