mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Allow posting blank messages if an attachment is included
This commit is contained in:
parent
d2ef05c7d4
commit
66c456f2ec
1 changed files with 2 additions and 2 deletions
|
|
@ -176,8 +176,8 @@ async def handle_proxying(conn, message):
|
|||
# Slicing to -0 breaks, don't do that
|
||||
inner_message = msg[len(prefix):].strip()
|
||||
|
||||
# Make sure the message isn't blank
|
||||
if inner_message:
|
||||
# Make sure the message isn't blank (but only if it has no attachments)
|
||||
if inner_message or message.attachments:
|
||||
await proxy_message(conn, member, message, inner_message)
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue