Allow posting blank messages if an attachment is included
This commit is contained in:
parent
d2ef05c7d4
commit
66c456f2ec
@ -176,8 +176,8 @@ async def handle_proxying(conn, message):
|
|||||||
# Slicing to -0 breaks, don't do that
|
# Slicing to -0 breaks, don't do that
|
||||||
inner_message = msg[len(prefix):].strip()
|
inner_message = msg[len(prefix):].strip()
|
||||||
|
|
||||||
# Make sure the message isn't blank
|
# Make sure the message isn't blank (but only if it has no attachments)
|
||||||
if inner_message:
|
if inner_message or message.attachments:
|
||||||
await proxy_message(conn, member, message, inner_message)
|
await proxy_message(conn, member, message, inner_message)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user