diff options
author | root <root@linux-forks.de> | 2018-09-14 16:59:07 +0200 |
---|---|---|
committer | root <root@linux-forks.de> | 2018-09-14 16:59:07 +0200 |
commit | 027897390b8286226f60b937b0481bd75bd67f9f (patch) | |
tree | ce41e636f076981f8eb3d30a766d9fced1768bc0 | |
parent | f1adf89411057e477432a507d880234c9dfbb212 (diff) | |
parent | 3270942a0fd264d9d0e5c9dc1ebac98d49ff8108 (diff) |
Merge branch 'master' of https://github.com/minetest-mods/xban2
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,9 +9,9 @@ local tempbans = { } local DEF_SAVE_INTERVAL = 300 -- 5 minutes local DEF_DB_FILENAME = minetest.get_worldpath().."/xban.db" -local DB_FILENAME = minetest.setting_get("xban.db_filename") +local DB_FILENAME = minetest.settings:get("xban.db_filename") local SAVE_INTERVAL = tonumber( - minetest.setting_get("xban.db_save_interval")) or DEF_SAVE_INTERVAL + minetest.settings:get("xban.db_save_interval")) or DEF_SAVE_INTERVAL if (not DB_FILENAME) or (DB_FILENAME == "") then DB_FILENAME = DEF_DB_FILENAME |