Remove “inf” argument from shutdown command help (#5880)

This commit is contained in:
Wuzzy 2017-06-02 17:16:30 +02:00 committed by Nils Dagsson Moskopp
parent b2bdef4da0
commit e4a9d9276d
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -807,7 +807,7 @@ core.register_chatcommand("days", {
core.register_chatcommand("shutdown", { core.register_chatcommand("shutdown", {
description = "Shutdown server", 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}, privs = {server=true},
func = function(name, param) func = function(name, param)
local delay, reconnect, message = param:match("([^ ][-]?[0-9]+)([^ ]+)(.*)") local delay, reconnect, message = param:match("([^ ][-]?[0-9]+)([^ ]+)(.*)")