diff --git a/init.lua b/init.lua index e46b45b..e6642e6 100644 --- a/init.lua +++ b/init.lua @@ -11,7 +11,10 @@ fediauth = { -- baseXX functions basexx = loadfile(MP.."/basexx.lua")(), } -fediauth.matterbridge_avalaible = minetest.get_modpath("yl_matterbridge") and true + +if minetest.settings:get_bool("fediauth.use_matterbridge", false) then + fediauth.matterbridge_avalaible = minetest.get_modpath("yl_matterbridge") and true +end dofile(MP.."/mastoapi.lua") local instance = minetest.settings:get("fediauth.instance") diff --git a/settingtypes.txt b/settingtypes.txt index 7408481..b07491b 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -25,3 +25,8 @@ fediauth.make_immortal_player (Make immortal player) bool true # It works as workaround # btw it can protect admin fediauth.protect_chatcommands (Protect chat commands) bool true + +# Use yl_matterbridge mod for report some unwanted behavior +# e.g. attempt try change password during 2FA +fediauth.use_matterbridge (Use matterbridge) bool false +