From a583240a9367dc8af2ea39fd0aa95bbd639e00c5 Mon Sep 17 00:00:00 2001 From: Ave Date: Tue, 9 Jun 2020 04:24:47 +0300 Subject: [PATCH] verification: Fix issue with wrong messages Closes #72 Bit of a hack, heh. --- cogs/verification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/verification.py b/cogs/verification.py index d537926..2f62588 100644 --- a/cogs/verification.py +++ b/cogs/verification.py @@ -167,7 +167,7 @@ class Verification(Cog): ) # Detect if the user uses the wrong hash algorithm - wrong_hash_algos = config.welcome_hashes - {self.hash_choice} + wrong_hash_algos = list(set(config.welcome_hashes) - {self.hash_choice} for algo in wrong_hash_algos: for name in itertools.chain(allowed_names, close_names): if hashlib.new(algo, name.encode("utf-8")).hexdigest() in mcl: