summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-05-18 17:14:03 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-05-18 17:14:03 +0000
commitfef6b799309b5b9d7cbb2845fa27b777477e2a61 (patch)
tree7526743e25d037fc75578a57d0de44b5b52e20f9 /plugins/MirLua
parent504307b184517248795d3ae4301969bfa93a050a (diff)
MirLua: added ability to hide received message in filter
git-svn-id: http://svn.miranda-ng.org/main/trunk@16849 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/m_protocols.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp
index b7d861480f..5bcc6a829d 100644
--- a/plugins/MirLua/src/m_protocols.cpp
+++ b/plugins/MirLua/src/m_protocols.cpp
@@ -131,9 +131,10 @@ static int lua_Accounts(lua_State *L)
INT_PTR FilterRecvMessage(WPARAM wParam, LPARAM lParam)
{
- NotifyEventHooks(hRecvMessage, wParam, lParam);
-
- return Proto_ChainRecv(wParam, (CCSDATA*)lParam);
+ int res = NotifyEventHooks(hRecvMessage, wParam, lParam);
+ if (res) return res;
+ Proto_ChainRecv(wParam, (CCSDATA*)lParam);
+ return 0;
}
/***********************************************/