Fix some chatcommands not returning a value (#9503)
This commit is contained in:
@@ -136,14 +136,14 @@ help_command.func = function(name, param)
|
||||
core.show_formspec(name, "__builtin:help_privs",
|
||||
build_privs_formspec(name))
|
||||
if name ~= admin then
|
||||
return
|
||||
return true
|
||||
end
|
||||
end
|
||||
if param == "" or param == "all" then
|
||||
core.show_formspec(name, "__builtin:help_cmds",
|
||||
build_chatcommands_formspec(name))
|
||||
if name ~= admin then
|
||||
return
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user