Do not check for expired mutes without database

This commit is contained in:
Timo Smit 2020-03-19 20:00:52 +01:00
parent 53e411f862
commit 5327c47e30

View file

@ -80,9 +80,11 @@ function mutes.checkLiveMutes()
end
function mutes.onInit()
if db.isConnected() then
storedMuteTimer = timers.add(mutes.checkStoredMutes, 60000, 0, false, false)
liveMuteTimer = timers.add(mutes.checkLiveMutes, 1000, 0, false, false)
end
end
events.handle("onGameInit", mutes.onInit)
return mutes