diff options
author | dopik <33575686+dopik@users.noreply.github.com> | 2018-02-19 08:41:44 +0100 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:32:00 +0200 |
commit | f8cc92c190f01c9fc9debddb6f9090ac7b754af8 (patch) | |
tree | a64995c8ae1dcc202775489d8daf1f01276b77b0 /builtin/game/chatcommands.lua | |
parent | 858c41b8428fa78039f66b829c0cf8fc92a83212 (diff) | |
download | minetest-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/game/chatcommands.lua')
-rw-r--r-- | builtin/game/chatcommands.lua | 2 |
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") |