make cmd variable local

master
Kahrl 2012-03-09 09:25:36 +01:00
parent 7bfb748092
commit 4c1e5a9447
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ end
minetest.register_on_chat_message(function(name, message)
local cmd
cmd = AWAYP_COMMAND
if message:sub(1, #cmd) == cmd then
-- /away?