From 40eec7fa665daee9c365e43f113296d32f61f5c5 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Tue, 29 Mar 2022 01:15:10 -0700
Subject: [PATCH] Posts from QWKnet users don't count as "posts" for local
 stats

Might add some other statistic for these relayed posts at some point.
---
 src/sbbs3/userdat.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/sbbs3/userdat.c b/src/sbbs3/userdat.c
index 2937567042..79bcd23ce1 100644
--- a/src/sbbs3/userdat.c
+++ b/src/sbbs3/userdat.c
@@ -2465,6 +2465,9 @@ BOOL user_posted_msg(scfg_t* cfg, user_t* user, int count)
 	user->posts	=(ushort)adjustuserrec(cfg, user->number, U_POSTS, count);
 	user->ptoday=(ushort)adjustuserrec(cfg, user->number, U_PTODAY, count);
 
+	if(user->rest & FLAG('Q'))
+		return TRUE;
+
 	return inc_post_stats(cfg, count);
 }
 
-- 
GitLab