diff options
Diffstat (limited to 'plugins/MirLua/src/m_protocols.cpp')
-rw-r--r-- | plugins/MirLua/src/m_protocols.cpp | 7 |
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;
}
/***********************************************/
|