diff --git a/README.md b/README.md index ec80aeb..29ad3e8 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,12 @@ Depends: nothing Chat commands ------------- -/ipnames + /ipnames - whois -> Gets all accounts of + whois -> Gets all accounts of - list -> Lists all exceptions/whitelist entries (players which can have "unlimited" accounts) + list -> Lists all exceptions/whitelist entries (players which can have "unlimited" accounts) - ignore -> Adds an exception/whitelist entry for + ignore -> Adds an exception/whitelist entry for - unignore -> Removes an exception/whitelist entry for + unignore -> Removes an exception/whitelist entry for diff --git a/init.lua b/init.lua index 1c36959..1690434 100644 --- a/init.lua +++ b/init.lua @@ -10,7 +10,7 @@ ipnames.file = minetest.get_worldpath().."/ipnames.data" ipnames.whitelist_file = minetest.get_worldpath().."/ipnames_whitelist.data" -- Limit 2 = maximal 2 accounts, the 3rd under the same IP gets blocked -ipnames.name_per_ip_limit = 2 +ipnames.name_per_ip_limit = tonumber(minetest.setting_get("max_names_per_ip")) or 2 -- Interval where the IP list gets saved/updated ipnames.save_interval = 240