mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-24 21:21:56 +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
|
end
|
||||||
|
|
||||||
function mutes.onInit()
|
function mutes.onInit()
|
||||||
storedMuteTimer = timers.add(mutes.checkStoredMutes, 60000, 0, false, false)
|
if db.isConnected() then
|
||||||
liveMuteTimer = timers.add(mutes.checkLiveMutes, 1000, 0, false, false)
|
storedMuteTimer = timers.add(mutes.checkStoredMutes, 60000, 0, false, false)
|
||||||
|
liveMuteTimer = timers.add(mutes.checkLiveMutes, 1000, 0, false, false)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
events.handle("onGameInit", mutes.onInit)
|
events.handle("onGameInit", mutes.onInit)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue