Do not loop through empty channels on filter
This commit is contained in:
parent
36dd97927e
commit
ce6142df75
|
@ -39,7 +39,7 @@ func filterEntriesForChannel(bot *hbot.Bot, message *hbot.Message, entries []*ch
|
|||
if e.Channel == message.To {
|
||||
actualEntry = e
|
||||
}
|
||||
if slices.ContainsFunc(exactMatches, func(s string) bool {
|
||||
if e.ApiEndpoint != "" && e.Name != "" && slices.ContainsFunc(exactMatches, func(s string) bool {
|
||||
return s == strings.ToLower(e.Name)
|
||||
}) {
|
||||
exactMatchesResult = append(exactMatchesResult, e)
|
||||
|
|
Loading…
Reference in a new issue