Skip to content

Commit

Permalink
fix embed sending twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Dec 4, 2024
1 parent 5dbdf68 commit 48145aa
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions support/pipeHandle.go
Original file line number Diff line number Diff line change
Expand Up @@ -1157,14 +1157,8 @@ func handleChatMsg(input *handleData) bool {
MessageEmbed

/* Send it off! */
err := disc.SmartWriteDiscordEmbed(cfg.Local.Channel.ChatChannel, myembed)
if err != nil {
/* On failure, send normal message */
cwlog.DoLogCW("Failed to send chat embed.")
} else {
/* Stop if succeeds */
return true
}
disc.SmartWriteDiscordEmbed(cfg.Local.Channel.ChatChannel, myembed)
return true
}
fact.CMS(cfg.Local.Channel.ChatChannel, fbuf)
return true
Expand Down

0 comments on commit 48145aa

Please sign in to comment.