summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_protocols.cpp
diff options
context:
space:
mode:
authorKonstantin <apollo2k4@narod.ru>2018-05-20 21:05:22 +0300
committerKonstantin <apollo2k4@narod.ru>2018-05-20 21:05:22 +0300
commit3f90207479ee0a6530631812717801a54093658c (patch)
tree6fd49e050ec5179df59fc5badc18e5668e0d6008 /plugins/MirLua/src/m_protocols.cpp
parent7d6b89fd45814936d0edeff664bf5efb2d19b875 (diff)
parent5de8252e58fbdbebb8914e99a90bec06a0ff039f (diff)
Merge branch 'master' of https://github.com/miranda-ng/miranda-ng
Diffstat (limited to 'plugins/MirLua/src/m_protocols.cpp')
-rw-r--r--plugins/MirLua/src/m_protocols.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp
index a2e3d7fbc1..0be2c253b9 100644
--- a/plugins/MirLua/src/m_protocols.cpp
+++ b/plugins/MirLua/src/m_protocols.cpp
@@ -236,6 +236,9 @@ static luaL_Reg protocolsApi[] =
LUAMOD_API int luaopen_m_protocols(lua_State *L)
{
+ hRecvMessage = CreateHookableEvent(MODULENAME PSR_MESSAGE);
+ CreateProtoServiceFunction(MODULENAME, PSR_MESSAGE, FilterRecvMessage);
+
luaL_newlib(L, protocolsApi);
MT<PROTOCOLDESCRIPTOR>(L, MT_PROTOCOLDESCRIPTOR)