From 1b65020b414bca9120fe87998769b5e138c435cd Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 19 Feb 2009 11:54:53 +0000 Subject: Added a event to IMessageTransferModule (and MessageTransferModule) so that other modules can capture IM messages and do custom handling of them. As just attaching to Client IM events doesn't really support this, as they would still get routed through the normal process and could give back errors. --- OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs b/OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs index ffae307..bc194b9 100644 --- a/OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs @@ -30,9 +30,12 @@ using OpenSim.Framework; namespace OpenSim.Region.Framework.Interfaces { public delegate void MessageResultNotification(bool success); + public delegate bool ExternalHandleIM(GridInstantMessage im); public interface IMessageTransferModule { + event ExternalHandleIM OnExternalIMCapture; + void SendInstantMessage(GridInstantMessage im, MessageResultNotification result); } } -- cgit v1.1