From fef6b799309b5b9d7cbb2845fa27b777477e2a61 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 18 May 2016 17:14:03 +0000 Subject: 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 --- plugins/MirLua/src/m_protocols.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/MirLua') 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; } /***********************************************/ -- cgit v1.2.3