Don't proxy blank messages
This commit is contained in:
parent
ae52d8bfa4
commit
af4f2025da
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user