diff options
author | Justin Clarke Casey | 2009-01-07 20:29:09 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-07 20:29:09 +0000 |
commit | 1aa9e6342829201e29290638fbb23baae8702193 (patch) | |
tree | f3bfd2b5cc94da63349119c8c9dd90f4a8cf7640 /OpenSim/Region/Environment/Modules | |
parent | * minor: Remove mono compiler warnings from WindModule (diff) | |
download | opensim-SC-1aa9e6342829201e29290638fbb23baae8702193.zip opensim-SC-1aa9e6342829201e29290638fbb23baae8702193.tar.gz opensim-SC-1aa9e6342829201e29290638fbb23baae8702193.tar.bz2 opensim-SC-1aa9e6342829201e29290638fbb23baae8702193.tar.xz |
* Move general alert code to DialogModule.
* Should be a clean build - last failure looked like a mantis hiccup
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs index e036c73..14a05ae 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Dialog/DialogModule.cs | |||
@@ -78,6 +78,21 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Dialog | |||
78 | break; | 78 | break; |
79 | } | 79 | } |
80 | } | 80 | } |
81 | } | ||
82 | |||
83 | /// <summary> | ||
84 | /// Send an alert messages to all avatars in this scene. | ||
85 | /// </summary> | ||
86 | /// <param name="message"></param> | ||
87 | public void SendGeneralAlert(string message) | ||
88 | { | ||
89 | List<ScenePresence> presenceList = m_scene.GetScenePresences(); | ||
90 | |||
91 | foreach (ScenePresence presence in presenceList) | ||
92 | { | ||
93 | if (!presence.IsChildAgent) | ||
94 | presence.ControllingClient.SendAlertMessage(message); | ||
95 | } | ||
81 | } | 96 | } |
82 | } | 97 | } |
83 | } | 98 | } |