projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
858c41b
)
/shutdown can't do countdown when using reconnect and/or shutdown message (#7055)
author
dopik
<33575686+dopik@users.noreply.github.com>
Mon, 19 Feb 2018 07:41:44 +0000
(08:41 +0100)
committer
SmallJoker
<mk939@ymail.com>
Sun, 3 Jun 2018 15:32:00 +0000
(17:32 +0200)
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.
builtin/game/chatcommands.lua
patch
|
blob
|
history
diff --git
a/builtin/game/chatcommands.lua
b/builtin/game/chatcommands.lua
index e788a2a54a091efa23c86136e18d5c7889565dba..3bd8f2f9cb44b51b5a5b41289bce42afcd7ffab6 100644
(file)
--- 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")