aboutsummaryrefslogtreecommitdiff
path: root/advtrains/nodedb.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-07-17 14:44:36 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-07-17 14:44:36 +0200
commit91bb555bc2c0f3f73f733d59fd703471a612e43b (patch)
tree214c322cd43402bc1395069fde99c654e0d5d6c2 /advtrains/nodedb.lua
parentdaba00b6a2edd57b2674168f05194c4ff80280e1 (diff)
downloadadvtrains-91bb555bc2c0f3f73f733d59fd703471a612e43b.tar.gz
advtrains-91bb555bc2c0f3f73f733d59fd703471a612e43b.tar.bz2
advtrains-91bb555bc2c0f3f73f733d59fd703471a612e43b.zip
No longer require server priv for /at_sync_ndb
The check for server priv was hidden where no one would have expected it.
Diffstat (limited to 'advtrains/nodedb.lua')
-rw-r--r--advtrains/nodedb.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua
index b17841c..37dc3f7 100644
--- a/advtrains/nodedb.lua
+++ b/advtrains/nodedb.lua
@@ -293,7 +293,7 @@ minetest.register_chatcommand("at_sync_ndb",
privs = {train_operator=true},
func = function(name, param)
return advtrains.pcall(function()
- if not minetest.check_player_privs(name, {server=true}) and os.time() < ptime+30 then
+ if os.time() < ptime+30 then
return false, "Please wait at least 30s from the previous execution of /at_restore_ndb!"
end
local text = ndb.restore_all()