From 17f783457b8dbd182f8184ef77c72d57d7c8da8b Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Thu, 8 Jan 2009 18:50:46 +0000
Subject: * refactor: move code for sending a message to all users in a region
to the DialogModule
---
.../Environment/Modules/Avatar/Dialog/DialogModule.cs | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
(limited to 'OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs')
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs
index 430968d..b64ec71 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs
@@ -90,10 +90,6 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Dialog
}
}
- ///
- /// Send an alert messages to all avatars in this scene.
- ///
- ///
public void SendGeneralAlert(string message)
{
List presenceList = m_scene.GetScenePresences();
@@ -103,6 +99,18 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Dialog
if (!presence.IsChildAgent)
presence.ControllingClient.SendAlertMessage(message);
}
- }
+ }
+
+ public void SendNotificationToUsersInRegion(
+ UUID fromAvatarID, string fromAvatarName, string message)
+ {
+ List presenceList = m_scene.GetScenePresences();
+
+ foreach (ScenePresence presence in presenceList)
+ {
+ if (!presence.IsChildAgent)
+ presence.ControllingClient.SendBlueBoxMessage(fromAvatarID, fromAvatarName, message);
+ }
+ }
}
}
--
cgit v1.1