Don't deduplicate global messages (NICK/QUIT)

This commit is contained in:
Mark Veidemanis 2020-10-31 16:51:24 +00:00
parent 45f02c323b
commit 82a98c9539
1 changed files with 2 additions and 0 deletions

View File

@ -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"]