Switch to explicit allowed prefix list.
This commit is contained in:
@@ -72,7 +72,7 @@ class FocusComponent(cmds.Component):
|
||||
|
||||
This amounts to whether it starts with a punctuation symbol, or it is only emotes and mentions.
|
||||
"""
|
||||
allowed = message.text.startswith(tuple(punctuation))
|
||||
allowed = message.text.startswith(tuple("!*#%|?><."))
|
||||
|
||||
if not allowed:
|
||||
allowed = True
|
||||
|
||||
Reference in New Issue
Block a user