diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-10-28 20:12:50 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-10-28 20:12:50 +0000 |
commit | 679b23b4d1c5b2d935085b199d9327bec8477378 (patch) | |
tree | 1ba71e9c6d153b777a9fb142d8b79c0ce8354582 /plugins/MirLua/src/m_protocols.cpp | |
parent | 13a2213b0aaf3778221bb4caf010f7696c57be30 (diff) |
MirLua:
- internal icons added to iconlib
- minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15641 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);
|