Merge pull request #8 from ClobberXD/patch-1

Fix unintended replacement of syntax
This commit is contained in:
Billy S 2018-12-07 12:07:06 -05:00 committed by GitHub
commit 9b61bc5fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ irc.config = {}
local function setting(stype, name, default, required)
local value
if minetest.settings and minetest.settings:get and minetest.settings:get_bool then
if minetest.settings and minetest.settings.get and minetest.settings.get_bool then
-- The current methods for getting settings
if stype == "bool" then
value = minetest.settings:get_bool("irc."..name)