diff --git a/plugins/wordbot.py b/plugins/wordbot.py index e539047..dd76dc9 100644 --- a/plugins/wordbot.py +++ b/plugins/wordbot.py @@ -235,7 +235,7 @@ class Wordbot(Plugin): if not self.db.is_game_active(channel): # Don't try to score words for inactive games return - words_in_line = {re.findall("[a-z0-9-]+", line.lower())} + words_in_line = set(re.findall(r"[a-z0-9-]+", line.lower())) matches = words_in_line & self.db.unmatched_words(channel) for word in matches: self.send_to(