mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user