From 4f63bf2d1952a7cbf1431603cadd43bad74f2adc Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 6 Dec 2022 18:22:54 +0100 Subject: [PATCH] Fix: Compare content for updates Signed-off-by: Knut Ahlers --- mod_streamSchedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_streamSchedule.go b/mod_streamSchedule.go index ed5ad9a..f6da1c9 100644 --- a/mod_streamSchedule.go +++ b/mod_streamSchedule.go @@ -122,7 +122,7 @@ func (m modStreamSchedule) cronUpdateSchedule() { if managedMsg != nil { oldEmbed := managedMsg.Embeds[0] - if isDiscordMessageEmbedEqual(oldEmbed, msgEmbed) { + if isDiscordMessageEmbedEqual(oldEmbed, msgEmbed) && strings.TrimSpace(managedMsg.Content) == strings.TrimSpace(contentString) { log.Debug("Stream Schedule is up-to-date") return }