WIM:Plugin API:interceptOutboundFunction

From WIM

Jump to: navigation, search

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 outbound 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 Plugin API.

Personal tools
statistics
People Online: 16
Today's Visitors: 423
Total Visitors: 2,278,009