diff options
author | dopik <33575686+dopik@users.noreply.github.com> | 2018-02-19 08:41:44 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-02-19 08:41:44 +0100 |
commit | cf98f5bbc03c41501f15a76c039b15735d53f18e (patch) | |
tree | 108187fb03d4830a59edb31481f487e0726d0db0 /builtin | |
parent | 5ef9056e89855660d93c4e8d98a7dbc349c1a7eb (diff) | |
download | minetest-cf98f5bbc03c41501f15a76c039b15735d53f18e.tar.gz minetest-cf98f5bbc03c41501f15a76c039b15735d53f18e.tar.bz2 minetest-cf98f5bbc03c41501f15a76c039b15735d53f18e.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.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua index 136e45a9a..e349eec7e 100644 --- a/builtin/game/chatcommands.lua +++ b/builtin/game/chatcommands.lua @@ -828,7 +828,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") |