mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-21 20:01:18 +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,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
|
||||
|
|
Loading…
Reference in a new issue