Skip to content

Commit

Permalink
/shutdown can't do countdown when using reconnect and/or shutdown mes…
Browse files Browse the repository at this point in the history
…sage (minetest#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.
  • Loading branch information
dopik authored and minduser00 committed Mar 18, 2018
1 parent 675f563 commit 77fd5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/game/chatcommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 77fd5cb

Please sign in to comment.