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.

This commit is contained in:
MW
2009-02-19 11:54:53 +00:00
parent eb143d556d
commit 1b65020b41
2 changed files with 17 additions and 0 deletions

View File

@@ -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);
}
}