Fix JAM active messages counter on restoring deleted messages

This commit is contained in:
Alexander S. Aganichev
2003-03-26 16:18:05 +00:00
parent 6d4938356e
commit 4b6129ddc0
2 changed files with 4 additions and 1 deletions

View File

@@ -386,7 +386,7 @@ void JamArea::save_message(int __mode, gmsg* __msg, JamHdr& __hdr) {
throw_release(_subfield);
// Update the header info
if(__mode & GMSG_NEW)
if((__mode & GMSG_NEW) or (was_deleted and not __msg->attr.del()))
data->hdrinfo.activemsgs++;
data->hdrinfo.modcounter++;
lseekset(data->fhjhr, 0);