From af4f2025da620bf2b5d9ac8ce89eff117aebe6df Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 14 Jul 2018 23:31:44 +0200 Subject: [PATCH] Don't proxy blank messages --- bot/pluralkit/proxy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/pluralkit/proxy.py b/bot/pluralkit/proxy.py index 4ee0a898..aef6f7b8 100644 --- a/bot/pluralkit/proxy.py +++ b/bot/pluralkit/proxy.py @@ -164,7 +164,9 @@ async def handle_proxying(conn, message): # Slicing to -0 breaks, don't do that inner_message = msg[len(prefix):].strip() - await proxy_message(conn, member, message, inner_message) + # Make sure the message isn't blank + if inner_message: + await proxy_message(conn, member, message, inner_message) break