if geoip mod is present, dont register geoip functions
This commit is contained in:
parent
4bf5a533b1
commit
8601309f80
@ -1,4 +1,4 @@
|
|||||||
if not governing.geoip then
|
if not governing.modgeoip then
|
||||||
|
|
||||||
minetest.register_privilege("geoip", {
|
minetest.register_privilege("geoip", {
|
||||||
description = "can do geoip lookups on players for governing",
|
description = "can do geoip lookups on players for governing",
|
||||||
@ -58,6 +58,8 @@ local function format_result(result)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not governing.modgeoip then
|
||||||
|
|
||||||
-- function(name, result)
|
-- function(name, result)
|
||||||
governing.joinplayer_callback = function() end
|
governing.joinplayer_callback = function() end
|
||||||
|
|
||||||
@ -126,3 +128,5 @@ minetest.register_chatcommand("geoip", {
|
|||||||
|
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user