summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_protocols.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-11-26 20:43:36 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-11-26 20:43:36 +0000
commit7e78bc7d9b3530c999898dc56de668ac8a466102 (patch)
tree3c12ff3b015d5f97ad013ab95fb6323ebaefd879 /plugins/MirLua/src/m_protocols.cpp
parente212cc9bf5a59c6ddb3a2aae11bb4e6a0618a21c (diff)
MirLua: more MT functionality
git-svn-id: http://svn.miranda-ng.org/main/trunk@15780 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_protocols.cpp')
-rw-r--r--plugins/MirLua/src/m_protocols.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp
index 222a766129..8ca1c38460 100644
--- a/plugins/MirLua/src/m_protocols.cpp
+++ b/plugins/MirLua/src/m_protocols.cpp
@@ -19,7 +19,7 @@ static int lua_GetProto(lua_State *L)
PROTOCOLDESCRIPTOR* pd = ::Proto_IsProtocolLoaded(ptrA(mir_utf8decodeA(name)));
if (pd)
- lua_pushlightuserdata(L, pd);
+ MT<PROTOCOLDESCRIPTOR>::Set(L, pd);
else
lua_pushnil(L);
@@ -36,7 +36,7 @@ static int lua_ProtoIterator(lua_State *L)
{
lua_pushinteger(L, (i + 1));
lua_replace(L, lua_upvalueindex(1));
- lua_pushlightuserdata(L, protos[i]);
+ MT<PROTOCOLDESCRIPTOR>::Set(L, protos[i]);
}
else
lua_pushnil(L);
@@ -121,7 +121,7 @@ static int lua_GetAccount(lua_State *L)
PROTOACCOUNT* pa = ::Proto_GetAccount(moduleName);
if (pa)
- lua_pushlightuserdata(L, pa);
+ MT<PROTOACCOUNT>::Set(L, pa);
else
lua_pushnil(L);
@@ -138,7 +138,7 @@ static int lua_AccountIterator(lua_State *L)
{
lua_pushinteger(L, (i + 1));
lua_replace(L, lua_upvalueindex(1));
- lua_pushlightuserdata(L, accounts[i]);
+ MT<PROTOACCOUNT>::Set(L, accounts[i]);
}
else
lua_pushnil(L);