Skip to content
Permalink
Browse files

/shutdown can't do countdown when using reconnect and/or shutdown mes…

…sage (#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 nerzhul committed Feb 19, 2018
1 parent 5ef9056 commit cf98f5bbc03c41501f15a76c039b15735d53f18e
Showing with 1 addition and 1 deletion.
  1. +1 −1 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")

0 comments on commit cf98f5b

Please sign in to comment.