use yl_matterbridge option disabled by default

This commit is contained in:
localhost_frssoft 2023-10-05 20:07:46 +03:00
parent 8d701f6955
commit 1a6ee23ed9
2 changed files with 9 additions and 1 deletions

View File

@ -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")

View File

@ -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