mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
Fix error when proxying all-whitespace message
This commit is contained in:
parent
da7befa1b7
commit
bb7ee130a6
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ namespace PluralKit.Bot
|
||||||
|
|
||||||
// Edge case: If we got a match with blank inner text, we'd normally just send w/ attachments
|
// Edge case: If we got a match with blank inner text, we'd normally just send w/ attachments
|
||||||
// However, if there are no attachments, the user probably intended something else, so we "un-match" and proceed to autoproxy
|
// However, if there are no attachments, the user probably intended something else, so we "un-match" and proceed to autoproxy
|
||||||
return hasAttachments || match.Content.Length > 0;
|
return hasAttachments || match.Content.Trim().Length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool TryMatchAutoproxy(MessageContext ctx, IReadOnlyCollection<ProxyMember> members, string messageContent,
|
private bool TryMatchAutoproxy(MessageContext ctx, IReadOnlyCollection<ProxyMember> members, string messageContent,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue