if geoip mod is present, dont register geoip functions

This commit is contained in:
mckaygerhard 2023-06-21 13:58:09 -04:00
parent 4bf5a533b1
commit 8601309f80

View File

@ -1,4 +1,4 @@
if not governing.geoip then
if not governing.modgeoip then
minetest.register_privilege("geoip", {
description = "can do geoip lookups on players for governing",
@ -58,6 +58,8 @@ local function format_result(result)
end
end
if not governing.modgeoip then
-- function(name, result)
governing.joinplayer_callback = function() end
@ -126,3 +128,5 @@ minetest.register_chatcommand("geoip", {
end
})
end