mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* refactor: move estate dialog to DialogModule
* This appeared only to be implemented for the region, and doesn't currently seem to work anyway
This commit is contained in:
@@ -99,7 +99,15 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Dialog
|
||||
if (!presence.IsChildAgent)
|
||||
presence.ControllingClient.SendAlertMessage(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SendNotificationToUsersInEstate(
|
||||
UUID fromAvatarID, string fromAvatarName, string message)
|
||||
{
|
||||
// TODO: This does not yet do what it says on the tin - it only sends the message to users in the same
|
||||
// region as the sending avatar.
|
||||
SendNotificationToUsersInRegion(fromAvatarID, fromAvatarName, message);
|
||||
}
|
||||
|
||||
public void SendNotificationToUsersInRegion(
|
||||
UUID fromAvatarID, string fromAvatarName, string message)
|
||||
|
||||
@@ -352,7 +352,8 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
|
||||
}
|
||||
}
|
||||
|
||||
private void SendSimulatorBlueBoxMessage(IClientAPI remote_client, UUID invoice, UUID senderID, UUID sessionID, string senderName, string message)
|
||||
private void SendSimulatorBlueBoxMessage(
|
||||
IClientAPI remote_client, UUID invoice, UUID senderID, UUID sessionID, string senderName, string message)
|
||||
{
|
||||
IDialogModule dm = m_scene.RequestModuleInterface<IDialogModule>();
|
||||
|
||||
@@ -360,9 +361,13 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
|
||||
dm.SendNotificationToUsersInRegion(senderID, senderName, message);
|
||||
}
|
||||
|
||||
private void SendEstateBlueBoxMessage(IClientAPI remote_client, UUID invoice, UUID senderID, UUID sessionID, string senderName, string message)
|
||||
private void SendEstateBlueBoxMessage(
|
||||
IClientAPI remote_client, UUID invoice, UUID senderID, UUID sessionID, string senderName, string message)
|
||||
{
|
||||
m_scene.SendEstateMessageFromEstateTools(senderID, sessionID, senderName, message);
|
||||
IDialogModule dm = m_scene.RequestModuleInterface<IDialogModule>();
|
||||
|
||||
if (dm != null)
|
||||
dm.SendNotificationToUsersInEstate(senderID, senderName, message);
|
||||
}
|
||||
|
||||
private void handleEstateDebugRegionRequest(IClientAPI remote_client, UUID invoice, UUID senderID, bool scripted, bool collisionEvents, bool physics)
|
||||
|
||||
Reference in New Issue
Block a user