Fix some chatcommands not returning a value (#9503)

This commit is contained in:
Wuzzy
2020-03-14 14:01:22 +00:00
committed by GitHub
parent 8546d6089a
commit 1441281809
2 changed files with 5 additions and 2 deletions

View File

@@ -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