Update mods/other/disallowed_names/init.lua

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
olliy 2021-01-31 13:22:15 +05:00 committed by GitHub
parent 932b471f36
commit 03d05ea77f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ end)
minetest.register_chatcommand("bdname_add", {
params = "<string>",
privs = {ban = true},
description = "adds a name to disallowed names",
description = "Adds a name to the disallowed names list.",
func = function(name,param)
if param ~= "" then
table.insert(disallowed_names,tostring(param))