From 1282a40986a00e2c50e473c20b69896ea7576bfc Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Tue, 21 Apr 2020 09:08:56 +0300 Subject: [PATCH] verification: fix some bugs --- cogs/verification.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cogs/verification.py b/cogs/verification.py index 1fbb80c..3618d9d 100644 --- a/cogs/verification.py +++ b/cogs/verification.py @@ -68,9 +68,7 @@ class Verification(Cog): # randomize hash_choice on reset self.hash_choice = random.choice( tuple( - hashlib.algorithms_guaranteed - - self.blacklisted_hashes - - {self.hash_choice} + config.welcome_hashes ) ) @@ -174,9 +172,8 @@ class Verification(Cog): # Detect if the user uses the wrong hash algorithm wrong_hash_algos = ( - hashlib.algorithms_guaranteed + config.welcome_hashes - {self.hash_choice} - - self.blacklisted_hashes ) for algo in wrong_hash_algos: for name in itertools.chain(allowed_names, close_names):