diff options
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r-- | mbbsd/record.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c index 2255f5e3..a5263e0e 100644 --- a/mbbsd/record.c +++ b/mbbsd/record.c @@ -386,16 +386,16 @@ delete_range(const char *fpath, int id1, int id2) void set_safedel_fhdr(fileheader_t *fhdr) { - if (fhdr->filemode & FILE_ANONYMOUS) + if (fhdr->filemode & FILE_ANONYMOUS || + !fhdr->owner[0] || + (fhdr->owner[0] == '-' && fhdr->owner[1] == 0) ) { // not putting owner because we can't know // if it is deleted by BM or owner. snprintf(fhdr->title, sizeof(fhdr->title), "%s", STR_SAFEDEL_TITLE); - } - else if ( strcmp(fhdr->owner, cuser.userid) == 0 || - !fhdr->owner[0] || - (fhdr->owner[0] == '-' && fhdr->owner[1] == 0) ) + } + else if ( strcmp(fhdr->owner, cuser.userid) == 0 ) { // i'm the one to delete it, or if the owner is corpse. snprintf(fhdr->title, sizeof(fhdr->title), |