X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=builtin%2Fcommon%2Fchatcommands.lua;h=fb593e8399619859296b6d5a57a87516f3bf7c9c;hb=cca4254f7c502b3e75691c6a3087da7cfcd72e28;hp=709c3d00a7738b6323e4110702b46c6a5df70313;hpb=c1aea404b862256e6bf9316eeb8f32c72b78a4c2;p=dragonfireclient.git diff --git a/builtin/common/chatcommands.lua b/builtin/common/chatcommands.lua index 709c3d00a..fb593e839 100644 --- a/builtin/common/chatcommands.lua +++ b/builtin/common/chatcommands.lua @@ -49,7 +49,7 @@ if INIT == "client" then local i = table.indexof(list, item) if i == -1 then return false, item .. " is not on the list." - else + else table.remove(list, i) core.settings:set(setting, table.concat(list, ",")) return true, "Removed " .. item .. " from the list." @@ -68,7 +68,7 @@ if INIT == "client" then end end end - return false, "Invalid usage. (See /help " .. command .. ")" + return false, "Invalid usage. (See .help " .. command .. ")" end core.register_chatcommand(command, def) end