Fix: Channel name must be stripped

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-03-21 15:09:22 +01:00
parent df9a23fec8
commit 396a6452d9
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -183,7 +183,7 @@ func (r *rule) Matches(m *irc.Message, event *string) bool {
} }
if r.DisableOnOffline { if r.DisableOnOffline {
streamLive, err := twitch.HasLiveStream(m.Params[0]) streamLive, err := twitch.HasLiveStream(strings.TrimLeft(m.Params[0], "#"))
if err != nil { if err != nil {
logger.WithError(err).Error("Unable to determine live status") logger.WithError(err).Error("Unable to determine live status")
return false return false