diff options
Diffstat (limited to 'plugins/MirLua/src/m_protocols.cpp')
-rw-r--r-- | plugins/MirLua/src/m_protocols.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp index 3d9908a61a..9aa4b4f753 100644 --- a/plugins/MirLua/src/m_protocols.cpp +++ b/plugins/MirLua/src/m_protocols.cpp @@ -18,9 +18,8 @@ static int lua_GetProto(lua_State *L) const char *name = luaL_checkstring(L, 1);
PROTOCOLDESCRIPTOR* pd = ::Proto_IsProtocolLoaded(ptrA(mir_utf8decodeA(name)));
-
if (pd)
- MapToTable(L, pd);
+ lua_pushlightuserdata(L, pd);
else
lua_pushnil(L);
@@ -121,9 +120,8 @@ static int lua_GetAccount(lua_State *L) ptrA moduleName(mir_utf8decodeA(luaL_checkstring(L, 1)));
PROTOACCOUNT* pa = ::Proto_GetAccount(moduleName);
-
if (pa)
- MapToTable(L, pa);
+ lua_pushlightuserdata(L, pa);
else
lua_pushnil(L);
|