summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/record.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 3f93820f..d6269ce3 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -386,14 +386,23 @@ delete_range(const char *fpath, int id1, int id2)
void
set_safedel_fhdr(fileheader_t *fhdr)
{
- if ( strcmp(fhdr->owner, cuser.userid) == 0 ||
+ if (fhdr->filemode & FILE_ANONYMOUS)
+ {
+ // 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) )
{
// i'm the one to delete it, or if the owner is corpse.
snprintf(fhdr->title, sizeof(fhdr->title),
"%s [%s]", STR_SAFEDEL_TITLE, cuser.userid);
- } else {
+ }
+ else
+ {
snprintf(fhdr->title, sizeof(fhdr->title),
"%s [%s](d:%s)", STR_SAFEDEL_TITLE, fhdr->owner, cuser.userid);
}