From 4060f5e6203da4c497af23f4a2179837615b24bf Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sun, 1 Apr 2007 19:42:54 +0000
Subject: [PATCH] Don't perform any dupe hash checking when importing into the
 'bad echo' area.

---
 src/sbbs3/sbbsecho.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/sbbs3/sbbsecho.c b/src/sbbs3/sbbsecho.c
index 4cc958c42e..7859060564 100644
--- a/src/sbbs3/sbbsecho.c
+++ b/src/sbbs3/sbbsecho.c
@@ -2520,6 +2520,9 @@ int fmsgtosmsg(uchar* fbuf, fmsghdr_t fmsghdr, uint user, uint subnum)
 	}
 	if(smbfile->status.max_crcs==0)
 		dupechk_hashes&=~(1<<SMB_HASH_SOURCE_BODY);
+	/* Bad echo area collects a *lot* of messages, and thus, hashes - so no dupe checking */
+	if(cfg.badecho>=0 && subnum==cfg.area[cfg.badecho].sub)
+		dupechk_hashes=SMB_HASH_SOURCE_NONE;
 
 	i=smb_addmsg(smbfile, &msg, storage, dupechk_hashes, xlat, sbody, stail);
 
-- 
GitLab