diff options
author | George Hazan <ghazan@miranda.im> | 2017-09-19 14:12:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-09-19 14:13:06 +0300 |
commit | e254312f9a660c83081ce2062ab14ba3c3614089 (patch) | |
tree | 324dff386c4b394ed4dc0f9b912ce3332bd94e84 /plugins/MirLua/src/m_chat.cpp | |
parent | 54ad7c456325b4c7fd639ef2d7cca7d5aef81c05 (diff) |
useless structure GCDEST finally removed
Diffstat (limited to 'plugins/MirLua/src/m_chat.cpp')
-rw-r--r-- | plugins/MirLua/src/m_chat.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/plugins/MirLua/src/m_chat.cpp b/plugins/MirLua/src/m_chat.cpp index dbecbc774e..f84caa4591 100644 --- a/plugins/MirLua/src/m_chat.cpp +++ b/plugins/MirLua/src/m_chat.cpp @@ -5,29 +5,14 @@ static luaL_Reg chatApi[] = { NULL, NULL }
};
-template <>
-int MT<GCEVENT>::Index(lua_State *L, GCEVENT *gce)
-{
- const char *key = lua_tostring(L, 2);
-
- if (mir_strcmp(key, "Destination") == 0)
- MT<GCDEST>::Set(L, gce->pDest);
- else
- lua_pushnil(L);
-
- return 1;
-}
-
LUAMOD_API int luaopen_m_chat(lua_State *L)
{
luaL_newlib(L, chatApi);
- MT<GCDEST>(L, "GCDEST")
- .Field(&GCDEST::pszModule, "Module", LUA_TSTRINGA)
- .Field(&GCDEST::ptszID, "Id", LUA_TSTRINGW)
- .Field(&GCDEST::iType, "Type", LUA_TINTEGER);
-
MT<GCEVENT>(L, "GCEVENT")
+ .Field(&GCEVENT::pszModule, "Module", LUA_TSTRINGA)
+ .Field(&GCEVENT::ptszID, "Id", LUA_TSTRINGW)
+ .Field(&GCEVENT::iType, "Type", LUA_TINTEGER)
.Field(&GCEVENT::time, "Timestamp", LUA_TINTEGER)
.Field(&GCEVENT::time, "IsMe", LUA_TINTEGER)
.Field(&GCEVENT::time, "Flags", LUA_TINTEGER)
|