Switch to explicit allowed prefix list.

This commit is contained in:
2025-11-07 23:50:02 +10:00
parent 26dc684851
commit 93c17112e3

View File

@@ -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. 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: if not allowed:
allowed = True allowed = True