Fix the general alert message so it doesn't get sent to child agents

avinationmerge
meta7 2010-08-07 08:17:11 -07:00
parent b017d985ab
commit 19debab060
1 changed files with 223 additions and 220 deletions

View File

@ -100,8 +100,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog
public void SendGeneralAlert(string message) public void SendGeneralAlert(string message)
{ {
m_scene.ForEachScenePresence(delegate(ScenePresence presence) m_scene.ForEachScenePresence(delegate(ScenePresence presence)
{
if (!presence.IsChildAgent)
{ {
presence.ControllingClient.SendAlertMessage(message); presence.ControllingClient.SendAlertMessage(message);
}
}); });
} }