diff options
Diffstat (limited to 'plugins/MirLua/docs/examples/core.lua')
-rw-r--r-- | plugins/MirLua/docs/examples/core.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/docs/examples/core.lua b/plugins/MirLua/docs/examples/core.lua index 064ab58fad..e18dc0577a 100644 --- a/plugins/MirLua/docs/examples/core.lua +++ b/plugins/MirLua/docs/examples/core.lua @@ -1,7 +1,7 @@ -- core module (m) is included by default --- include m_genmenu module +--- include m_clist module +local clist = require('m_clist') -- include m_icolib module -local genmenu = require('m_genmenu') local icolib = require('m_icolib') -- Add icon for menu items @@ -10,5 +10,5 @@ local hRestartIcon = icolib.AddIcon('restartIcon', 'Restart') -- Subscribe to [[Miranda/System/ModulesLoaded]] event m.OnModulesLoaded(function() -- Add menu item to main menu that allow to restart Miranda NG - genmenu.AddMainMenuItem("Restart", 0, 0, hRestartIcon, "Miranda/System/Restart") + clist.AddMainMenuItem("Restart", 0, 0, hRestartIcon, "Miranda/System/Restart") end) |