mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Do not check for expired mutes without database
This commit is contained in:
parent
53e411f862
commit
5327c47e30
1 changed files with 4 additions and 2 deletions
|
@ -80,8 +80,10 @@ function mutes.checkLiveMutes()
|
|||
end
|
||||
|
||||
function mutes.onInit()
|
||||
storedMuteTimer = timers.add(mutes.checkStoredMutes, 60000, 0, false, false)
|
||||
liveMuteTimer = timers.add(mutes.checkLiveMutes, 1000, 0, false, false)
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue