Remove odd chars from warp name

This commit is contained in:
James Stevenson 2015-09-09 11:04:03 -04:00
parent aa772124b3
commit 7d36e4b3c0
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ minetest.register_chatcommand("setwarp", {
description = "Set a warp location to the players location", description = "Set a warp location to the players location",
privs = { warp_admin = true }, privs = { warp_admin = true },
func = function(name, param) func = function(name, param)
param = param:gsub("%W", "")
local h = "created" local h = "created"
for i = 1,table.getn(warps) do for i = 1,table.getn(warps) do
if warps[i].name == param then if warps[i].name == param then