Compare commits

...

4 Commits

Author SHA1 Message Date
075df0f10c Remove depends.txt, add mod.conf 2022-06-26 16:44:09 +02:00
f4eef4af6a Fix crash 2021-02-26 16:13:42 +01:00
ab4e94cfba Fix deprecated call for minetest settings 2021-02-25 23:45:29 +01:00
sys4-fr
5083ada500 Ajoute message de chargement du mod dans le journal "action" 2018-12-25 15:40:52 +01:00
3 changed files with 7 additions and 10 deletions

View File

@ -1 +0,0 @@
irc?

View File

@ -27,15 +27,8 @@ minetest.register_privilege("fp_create","Is able to create FailPoints and give t
-- Check configuration fields
data.PUB_MSG = false
data.STRICT_PLAYER_CHECK = true
if minetest.setting_getbool("fp_pubmsg") ~= nil then
data.PUB_MSG = minetest.setting_getbool("fp_pubmsg")
end
if minetest.setting_getbool("fp_strict_checking") ~= nil then
data.STRICT_PLAYER_CHECK = minetest.setting_getbool("fp_strict_checking")
end
data.PUB_MSG = minetest.settings:get_bool("fp_pubmsg", false)
data.STRICT_PLAYER_CHECK = minetest.settings:get_bool("fp_strict_checking", true)
-- Configuration application
@ -207,3 +200,5 @@ minetest.register_chatcommand("fail", {
-- Create the same things for cookies
dofile(minetest.get_modpath("fail").."/cookie.lua")
minetest.log("action", "[fail] loaded.")

3
mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = fail
description = Receive and give cookies and FailPoints.
optional_depends = irc