diff --git a/luascripts/wolfadmin/admin/mutes.lua b/luascripts/wolfadmin/admin/mutes.lua index f2a97cd..7026f96 100644 --- a/luascripts/wolfadmin/admin/mutes.lua +++ b/luascripts/wolfadmin/admin/mutes.lua @@ -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)