summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_protocols.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-06-05 18:08:58 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-06-05 18:08:58 +0000
commit8cf0298ead2e6d2930fd528ea0fc901d83208ddf (patch)
treeb95b32d4a9165d9ced874bdffeb7e0ff7c0d7329 /plugins/MirLua/src/m_protocols.cpp
parente5f74a7f7b50800e9b9bb3bdf694b8886cdeb3fc (diff)
MirLua:
- GetContactInfo changed params place - reworked MT initialization git-svn-id: http://svn.miranda-ng.org/main/trunk@16921 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_protocols.cpp')
-rw-r--r--plugins/MirLua/src/m_protocols.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp
index 9ea8f4b833..493978283c 100644
--- a/plugins/MirLua/src/m_protocols.cpp
+++ b/plugins/MirLua/src/m_protocols.cpp
@@ -160,7 +160,6 @@ LUAMOD_API int luaopen_m_protocols(lua_State *L)
MT<PROTOCOLDESCRIPTOR>(L, "PROTOCOLDESCRIPTOR")
.Field(&PROTOCOLDESCRIPTOR::szName, "Name", LUA_TSTRINGA)
.Field(&PROTOCOLDESCRIPTOR::type, "Type", LUA_TINTEGER);
- lua_pop(L, 1);
MT<PROTOACCOUNT>(L, "PROTOACCOUNT")
.Field(&PROTOACCOUNT::szModuleName, "ModuleName", LUA_TSTRINGA)
@@ -170,7 +169,6 @@ LUAMOD_API int luaopen_m_protocols(lua_State *L)
.Field(&PROTOACCOUNT::bIsVisible, "IsVisible", LUA_TBOOLEAN)
.Field(&PROTOACCOUNT::bIsVirtual, "IsVirtual", LUA_TBOOLEAN)
.Field(&PROTOACCOUNT::bOldProto, "IsOldProto", LUA_TBOOLEAN);
- lua_pop(L, 1);
MT<ACKDATA>(L, "ACKDATA")
.Field(&ACKDATA::szModule, "Module", LUA_TSTRINGA)
@@ -179,12 +177,10 @@ LUAMOD_API int luaopen_m_protocols(lua_State *L)
.Field(&ACKDATA::result, "Result", LUA_TINTEGER)
.Field(&ACKDATA::hProcess, "hProcess", LUA_TLIGHTUSERDATA)
.Field(&ACKDATA::lParam, "lParam", LUA_TLIGHTUSERDATA);
- lua_pop(L, 1);
MT<CCSDATA>(L, "CCSDATA")
.Field(&CCSDATA::hContact, "hContact", LUA_TINTEGER)
.Field([](CCSDATA *ccs) { return ((PROTORECVEVENT*)ccs->lParam)->szMessage; }, "Message", LUA_TSTRING);
- lua_pop(L, 1);
return 1;
}