events.py: Fix levenshtein filter
@@ -41,8 +41,8 @@ class Events(commands.Cog):
to_check = re.findall(r"([\w0-9-]+\.[\w0-9-]+)", message)
for word in to_check:
- for trigger, threshold in triggers:
word = word[::-1]
+ for trigger, threshold in triggers:
chance = distance(word, trigger)
if word in whitelist or chance > threshold:
continue
