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:
30c51a1
)
Remove “inf” argument from shutdown command help (#5880)
author
Wuzzy
<wuzzy2@mail.ru>
Fri, 2 Jun 2017 15:16:30 +0000
(17:16 +0200)
committer
Loïc Blot
<nerzhul@users.noreply.github.com>
Fri, 2 Jun 2017 15:16:30 +0000
(17:16 +0200)
builtin/game/chatcommands.lua
patch
|
blob
|
history
diff --git
a/builtin/game/chatcommands.lua
b/builtin/game/chatcommands.lua
index 3f5f044b442b9e823d700c636053413afdd87704..3dfc29ffa6010e08137ae954b1ab8a95c4516e11 100644
(file)
--- a/
builtin/game/chatcommands.lua
+++ b/
builtin/game/chatcommands.lua
@@
-807,7
+807,7
@@
core.register_chatcommand("days", {
core.register_chatcommand("shutdown", {
description = "Shutdown server",
- params = "[delay_in_seconds
(0..inf) or -1 for cancel
] [reconnect] [message]",
+ params = "[delay_in_seconds
(non-negative number, or -1 to cancel)
] [reconnect] [message]",
privs = {server=true},
func = function(name, param)
local delay, reconnect, message = param:match("([^ ][-]?[0-9]+)([^ ]+)(.*)")