forked from karx/dircord
Don't panic on empty messages
This commit is contained in:
parent
7ec420b23a
commit
476bcf392a
|
@ -377,6 +377,9 @@ async fn msg_task(mut recv: UnboundedReceiverStream<QueuedMessage>) -> anyhow::R
|
|||
content,
|
||||
nickname,
|
||||
} => {
|
||||
if content.is_empty() {
|
||||
continue;
|
||||
}
|
||||
webhook
|
||||
.execute(&http, true, |w| {
|
||||
if let Some(ref url) = avatar_url {
|
||||
|
|
Loading…
Reference in a new issue