aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authordopik <33575686+dopik@users.noreply.github.com>2018-02-19 08:41:44 +0100
committerSmallJoker <mk939@ymail.com>2018-06-03 17:32:00 +0200
commitf8cc92c190f01c9fc9debddb6f9090ac7b754af8 (patch)
treea64995c8ae1dcc202775489d8daf1f01276b77b0 /builtin
parent858c41b8428fa78039f66b829c0cf8fc92a83212 (diff)
downloadminetest-f8cc92c190f01c9fc9debddb6f9090ac7b754af8.tar.gz
minetest-f8cc92c190f01c9fc9debddb6f9090ac7b754af8.tar.bz2
minetest-f8cc92c190f01c9fc9debddb6f9090ac7b754af8.zip
/shutdown can't do countdown when using reconnect and/or shutdown message (#7055)
Delay was converted from the param string and not the delay value, thus never using the actual given delay value when used in combination with other string values in the param, in this case reconnect and the shutdown messsage.
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/chatcommands.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua
index e788a2a54..3bd8f2f9c 100644
--- a/builtin/game/chatcommands.lua
+++ b/builtin/game/chatcommands.lua
@@ -814,7 +814,7 @@ core.register_chatcommand("shutdown", {
message = message or ""
if delay ~= "" then
- delay = tonumber(param) or 0
+ delay = tonumber(delay) or 0
else
delay = 0
core.log("action", name .. " shuts down server")