diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mail.c | 3 | ||||
-rw-r--r-- | mbbsd/mbbsd.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 30e9b06c..9d6ff1e4 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1151,7 +1151,8 @@ mail_reply(int ent, fileheader_t * fhdr, const char *direct) case 0: /* success */ - if ( (curredit & EDIT_MAIL) && + if ( ent && /* for board, no ent */ + (curredit & EDIT_MAIL) && !(fhdr->filemode & FILE_REPLIED)) { fhdr->filemode |= FILE_REPLIED; diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 59ca1b1e..ed55c868 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -262,12 +262,13 @@ abort_bbs_debug(int sig) */ #ifdef DEBUGSLEEP + #ifndef VALGRIND setproctitle("debug me!(%d)(%s,%d)", sig, cuser.userid, currstat); #endif /* do this manually to prevent broken stuff */ /* will broken currutmp cause problems here? hope not... */ - if(currutmp) + if(currutmp && strncmp(cuser.userid, currutmp->userid, IDLEN) == EQUSTR) currutmp->mode = DEBUGSLEEPING; sleep(3600); /* wait 60 mins for debug */ |