diff options
author | Diego Martinez <kaeza@users.sf.net> | 2014-05-21 07:07:37 -0300 |
---|---|---|
committer | Diego Martinez <kaeza@users.sf.net> | 2014-05-21 07:07:37 -0300 |
commit | d47e87e390b018ac5510bb2143eb0e66f6bc2eeb (patch) | |
tree | 268699a2fcd923116452bf33bdf833893cc6f72f /init.lua | |
parent | 51097eee6bb6179773e7df4c958c1dd80136ed42 (diff) |
Allow importing old databases.
Currently:
- Minetest (`ipban.txt')
- xban v1 (`players.iplist')
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,9 +1,7 @@ -xban = { } +xban = { MP = minetest.get_modpath(minetest.get_current_modname()) } -local MP = minetest.get_modpath(minetest.get_current_modname()) - -dofile(MP.."/serialize.lua") +dofile(xban.MP.."/serialize.lua") local db = { } local tempbans = { } @@ -262,3 +260,5 @@ minetest.register_on_shutdown(save_db) minetest.after(SAVE_INTERVAL, save_db) load_db() xban.db = db + +dofile(xban.MP.."/dbimport.lua") |