variable to local scope

This commit is contained in:
Alexsandro Percy 2022-04-18 11:03:02 -03:00
parent dfd89a0e27
commit af2e3a7589

View File

@ -8,8 +8,8 @@ local talk_form = "formspec_version[5]"..
"size[1.5,1]"..
"button[0.125,0.125;1.25,0.75;play;Talk]"
modname = minetest.get_current_modname()
modpath = minetest.get_modpath(modname)
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
local function sanitizeNick(data_received)
return string.gsub(data_received, "%c", ""):sub( 1, 20 )