From 66c456f2ec7c111e6c56d8abe74a9554c1389336 Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 16 Jul 2018 07:10:06 +0200 Subject: [PATCH] Allow posting blank messages if an attachment is included --- bot/pluralkit/proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/pluralkit/proxy.py b/bot/pluralkit/proxy.py index c2392de8..73146f30 100644 --- a/bot/pluralkit/proxy.py +++ b/bot/pluralkit/proxy.py @@ -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