mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
Count all-blank strings as empty for the purposes of proxy validation
This commit is contained in:
parent
99657ae07d
commit
3fca071c1d
1 changed files with 2 additions and 1 deletions
|
|
@ -164,7 +164,8 @@ async def try_proxy_message(conn, message: discord.Message, logger: ChannelLogge
|
|||
inner_text = utils.sanitize(inner_text)
|
||||
|
||||
# If we don't have an inner text OR an attachment, we cancel because the hook can't send that
|
||||
if not inner_text and not message.attachments:
|
||||
# Strip so it counts a string of solely spaces as blank too
|
||||
if not inner_text.strip() and not message.attachments:
|
||||
return False
|
||||
|
||||
# So, we now have enough information to successfully proxy a message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue