From 1aa9e6342829201e29290638fbb23baae8702193 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Wed, 7 Jan 2009 20:29:09 +0000
Subject: * Move general alert code to DialogModule. * Should be a clean build
- last failure looked like a mantis hiccup
---
.../Environment/Modules/Avatar/Dialog/DialogModule.cs | 15 +++++++++++++++
1 file changed, 15 insertions(+)
(limited to 'OpenSim/Region/Environment/Modules/Avatar/Dialog')
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
break;
}
}
+ }
+
+ ///
+ /// Send an alert messages to all avatars in this scene.
+ ///
+ ///
+ public void SendGeneralAlert(string message)
+ {
+ List presenceList = m_scene.GetScenePresences();
+
+ foreach (ScenePresence presence in presenceList)
+ {
+ if (!presence.IsChildAgent)
+ presence.ControllingClient.SendAlertMessage(message);
+ }
}
}
}
--
cgit v1.1