mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-21 20:01:18 +00:00
Do not check for expired bans without database
This commit is contained in:
parent
506db84674
commit
53e411f862
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@ function bans.checkStoredBans()
|
|||
end
|
||||
|
||||
function bans.onInit()
|
||||
storedBanTimer = timers.add(bans.checkStoredBans, 60000, 0, false, false)
|
||||
if db.isConnected() then
|
||||
storedBanTimer = timers.add(bans.checkStoredBans, 60000, 0, false, false)
|
||||
end
|
||||
end
|
||||
events.handle("onGameInit", bans.onInit)
|
||||
|
||||
|
|
Loading…
Reference in a new issue