diff --git a/plugin/thesaurus/chat.go b/plugin/thesaurus/chat.go index 6fc93038..ee2dc1fa 100644 --- a/plugin/thesaurus/chat.go +++ b/plugin/thesaurus/chat.go @@ -287,6 +287,9 @@ func randreply(m map[string][]string) zero.Handler { text = strings.ReplaceAll(text, "{me}", nick) id := ctx.Event.MessageID for _, t := range strings.Split(text, "{segment}") { + if t == "" { + continue + } process.SleepAbout1sTo2s() id = ctx.SendChain(message.Reply(id), message.Text(t)) }