From 396a6452d901fb91afb9e5d61de878fe67b01aeb Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 21 Mar 2021 15:09:22 +0100 Subject: [PATCH] Fix: Channel name must be stripped Signed-off-by: Knut Ahlers --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 9d7a7fd..34eb99b 100644 --- a/config.go +++ b/config.go @@ -183,7 +183,7 @@ func (r *rule) Matches(m *irc.Message, event *string) bool { } if r.DisableOnOffline { - streamLive, err := twitch.HasLiveStream(m.Params[0]) + streamLive, err := twitch.HasLiveStream(strings.TrimLeft(m.Params[0], "#")) if err != nil { logger.WithError(err).Error("Unable to determine live status") return false