Don't proxy blank messages
This commit is contained in:
parent
ae52d8bfa4
commit
af4f2025da
@ -164,6 +164,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
|
||||||
|
if inner_message:
|
||||||
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