From f503d0103ef40252e6d174ad22e5a6f1bd6336f6 Mon Sep 17 00:00:00 2001 From: Yash Karandikar Date: Sun, 28 Aug 2022 16:03:08 -0500 Subject: [PATCH] Port it to the raw message sender lol --- src/irc_discord.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/irc_discord.rs b/src/irc_discord.rs index 7504848..b272cc6 100644 --- a/src/irc_discord.rs +++ b/src/irc_discord.rs @@ -395,6 +395,9 @@ async fn msg_task(mut recv: UnboundedReceiverStream) -> anyhow::R http, message, } => { + if content.is_empty() { + continue; + } channel_id.say(&http, message).await?; } }