From ecc9fa8cee890efc3dba0875c426a3c3a2fb9b07 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 14 May 2014 14:32:49 +1000 Subject: Display LSL script names instead of lengthy paths and UUIDs. --- lib/LSL.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/LSL.lua b/lib/LSL.lua index 3b5ba89..6d84f90 100644 --- a/lib/LSL.lua +++ b/lib/LSL.lua @@ -741,6 +741,7 @@ function LSL.stateChange(x) if nil ~= currentState.state_exit then currentState.state_exit(); end + msg("LSL.Lua: State change on " .. scriptName) currentState = x; --[[ Never return to the current states event handler. In theory. lol Notably, it's not actually legal to do a state change from a function, only from handlers. @@ -771,7 +772,7 @@ function LSL.mainLoop(sid, name, x) LSL.stateChange(x); waitAndProcess(false) - msg("LSL.Lua: Script quitting.") + msg("LSL.Lua: Script quitting " .. scriptName) end function waitAndProcess(returnWanted) -- cgit v1.1