mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
Fix: Channel name must be stripped
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
df9a23fec8
commit
396a6452d9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue