diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 8 | ||||
-rw-r--r-- | plugins/MirLua/src/m_hotkeys.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index 8ec5baa7a3..25252f2d7b 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -140,8 +140,8 @@ static luaL_Reg genmenuApi[] = { "CheckMenuItem", lua_CheckMenuItem },
{ "RemoveMenuItem", lua_RemoveMenuItem },
- { "MO_MAIN", NULL },
- { "MO_CONTACT", NULL },
+ //{ "MO_MAIN", NULL },
+ //{ "MO_CONTACT", NULL },
{ NULL, NULL }
};
@@ -149,10 +149,10 @@ static luaL_Reg genmenuApi[] = LUAMOD_API int luaopen_m_genmenu(lua_State *L)
{
luaL_newlib(L, genmenuApi);
- lua_pushinteger(L, MO_MAIN);
+ /*lua_pushinteger(L, MO_MAIN);
lua_setfield(L, -2, "MO_MAIN");
lua_pushinteger(L, MO_CONTACT);
- lua_setfield(L, -2, "MO_CONTACT");
+ lua_setfield(L, -2, "MO_CONTACT");*/
return 1;
}
diff --git a/plugins/MirLua/src/m_hotkeys.cpp b/plugins/MirLua/src/m_hotkeys.cpp index a5ff2c4e34..a052f5beb1 100644 --- a/plugins/MirLua/src/m_hotkeys.cpp +++ b/plugins/MirLua/src/m_hotkeys.cpp @@ -57,7 +57,7 @@ static int lua_Unregister(lua_State *L) {
const char *name = luaL_checkstring(L, 1);
- ::CallService("CoreHotkeys/Unregister", 0, (LPARAM)name);
+ ::CallService(MS_HOTKEY_UNREGISTER, 0, (LPARAM)name);
return 0;
}
|