Skip to content

Commit

Permalink
Added module show_loaded.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Sep 4, 2010
1 parent 081a531 commit 7dd4255
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
6 changes: 4 additions & 2 deletions install/mushclient.nsi
Expand Up @@ -346,7 +346,8 @@ SetOverwrite ifnewer
File "..\lua\mapper.lua"
File "..\luacom\luacom5.lua"
File "..\lua\sandbox.lua"

File "..\lua\show_loaded.lua"

; LuaSocket

File "..\lua\socket.lua"
Expand Down Expand Up @@ -559,7 +560,8 @@ Section Uninstall
Delete "$INSTDIR\lua\mapper.lua"
Delete "$INSTDIR\lua\luacom5.lua"
Delete "$INSTDIR\lua\sandbox.lua"

Delete "$INSTDIR\lua\show_loaded.lua"

Delete "$INSTDIR\lua\socket.lua"
Delete "$INSTDIR\lua\ltn12.lua"
Delete "$INSTDIR\lua\mime.lua"
Expand Down
4 changes: 3 additions & 1 deletion lua/sandbox.lua
@@ -1,7 +1,9 @@
-- MUSHclient sandbox (taken from versions 4.11 to 4.57)
-- sandbox.lua

--[[
MUSHclient sandbox (taken from versions 4.11 to 4.57)
To enable the sandbox for all Lua scripting add to:
File menu -> Global Preferences -> Lua -> Preliminary Code
Expand Down
25 changes: 25 additions & 0 deletions lua/show_loaded.lua
@@ -0,0 +1,25 @@
-- show_loaded.lua

--[[
Shows each plugin as it is loaded.
To enable this, add to:
File menu -> Global Preferences -> Lua -> Preliminary Code
... this line:
require "show_loaded"
--]]
if GetPluginID () == "" then
ColourNote ("gray", "", "Initializing main world script ...")
else
ColourNote ("gray", "", string.format ("Loading plugin '%s' (%s) version %0.2f ...",
GetPluginInfo ( GetPluginID (), 7),
GetPluginInfo ( GetPluginID (), 1),
GetPluginInfo ( GetPluginID (), 19)))
end -- if

0 comments on commit 7dd4255

Please sign in to comment.