diff options
author | Justin Clarke Casey | 2009-01-08 18:50:46 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-08 18:50:46 +0000 |
commit | 17f783457b8dbd182f8184ef77c72d57d7c8da8b (patch) | |
tree | 2ab67061f34d29f724ee13ebec4a9ca884cdd5da /OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs | |
parent | Update svn properties, minor formatting cleanup. (diff) | |
download | opensim-SC-17f783457b8dbd182f8184ef77c72d57d7c8da8b.zip opensim-SC-17f783457b8dbd182f8184ef77c72d57d7c8da8b.tar.gz opensim-SC-17f783457b8dbd182f8184ef77c72d57d7c8da8b.tar.bz2 opensim-SC-17f783457b8dbd182f8184ef77c72d57d7c8da8b.tar.xz |
* refactor: move code for sending a message to all users in a region to the DialogModule
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs | 18 |
1 files changed, 13 insertions, 5 deletions
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 | |||
90 | } | 90 | } |
91 | } | 91 | } |
92 | 92 | ||
93 | /// <summary> | ||
94 | /// Send an alert messages to all avatars in this scene. | ||
95 | /// </summary> | ||
96 | /// <param name="message"></param> | ||
97 | public void SendGeneralAlert(string message) | 93 | public void SendGeneralAlert(string message) |
98 | { | 94 | { |
99 | List<ScenePresence> presenceList = m_scene.GetScenePresences(); | 95 | List<ScenePresence> presenceList = m_scene.GetScenePresences(); |
@@ -103,6 +99,18 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Dialog | |||
103 | if (!presence.IsChildAgent) | 99 | if (!presence.IsChildAgent) |
104 | presence.ControllingClient.SendAlertMessage(message); | 100 | presence.ControllingClient.SendAlertMessage(message); |
105 | } | 101 | } |
106 | } | 102 | } |
103 | |||
104 | public void SendNotificationToUsersInRegion( | ||
105 | UUID fromAvatarID, string fromAvatarName, string message) | ||
106 | { | ||
107 | List<ScenePresence> presenceList = m_scene.GetScenePresences(); | ||
108 | |||
109 | foreach (ScenePresence presence in presenceList) | ||
110 | { | ||
111 | if (!presence.IsChildAgent) | ||
112 | presence.ControllingClient.SendBlueBoxMessage(fromAvatarID, fromAvatarName, message); | ||
113 | } | ||
114 | } | ||
107 | } | 115 | } |
108 | } | 116 | } |