WIM:Plugin API:interceptInboundFunction
From WIM
This function must be defined as follows.
function MyAddon_InterceptFunctionName(theUser, theMSG) -- your code. end
By default, having this function declared will not block this incoming event from WIM. To do so, you must return true in your function.
function MyAddon_InterceptFunctionName(theUser, theMSG)
-- your code.
if(myCondition) then
return true; -- block from WIM.
end
end
If you need to block a message from WIM for preprocessing but would like to eventualy pass this message back to WIM at a later time, you can do so by using the available functions listed in WIM's Plugin API Documentation.

