Allow posting blank messages if an attachment is included

This commit is contained in:
Ske 2018-07-16 07:10:06 +02:00
parent d2ef05c7d4
commit 66c456f2ec

View File

@ -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