mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: don't try matching commands if there is nothing to match
This commit is contained in:
parent
1e5ba5f985
commit
cf93b8b3cc
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ namespace PluralKit.Bot
|
|||
if (content == null) return false;
|
||||
|
||||
// Check for command prefix
|
||||
if (!HasCommandPrefix(content, shard.User?.Id ?? default, out var cmdStart))
|
||||
if (!HasCommandPrefix(content, shard.User?.Id ?? default, out var cmdStart) || cmdStart == content.Length)
|
||||
return false;
|
||||
|
||||
// Trim leading whitespace from command without actually modifying the string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue