Fix all timers spamming on stream-start

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-03-27 20:08:21 +01:00
parent ad8244814a
commit ddef07120f
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -64,6 +64,9 @@ func (a *autoMessage) CanSend() bool {
return false
}
if !streamLive {
// Timer is only to be triggered during stream being live,
// reset the timer in order not to spam all messages on stream-start
a.lastMessageSent = time.Now()
return false
}
}