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."
end
end
end
- return false, "Invalid usage. (See /help " .. command .. ")"
+ return false, "Invalid usage. (See .help " .. command .. ")"
end
core.register_chatcommand(command, def)
end