Commit e42f7df5 authored by Kryha's avatar Kryha 🐧

Add the ignorecase flag to the findall function;

parent d523eee6
Pipeline #50793627 (#34) passed with stage
in 1 minute and 48 seconds
......@@ -127,7 +127,7 @@ def tweet_thread(thread, id, board):
def spam(text):
"Check text for spam/flood."
for word in config['wordfilter']:
matches = re.findall(word, text)
matches = re.findall(word, text, re.IGNORECASE)
if matches:
return True
return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment