From 82a98c953937e59d7fec7ffc1a353f7bb22ba19c Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 31 Oct 2020 16:51:24 +0000 Subject: [PATCH] Don't deduplicate global messages (NICK/QUIT) --- utils/dedup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/dedup.py b/utils/dedup.py index a5c3c45..6746112 100644 --- a/utils/dedup.py +++ b/utils/dedup.py @@ -6,6 +6,8 @@ import main from utils.logging.debug import debug def dedup(numName, b): + if b["type"] in ["quit", "nick"]: + return False # QUITs and NICKs can't be duplicated, they are global and duplications are likely c = deepcopy(b) if "time" in c.keys(): del c["time"]