adjust DialogModule to only send broadcast alerts to root agents

This commit is contained in:
Justin Clark-Casey (justincc)
2010-07-20 21:32:13 +01:00
parent 7c124a5543
commit e46c0a0fc9

View File

@@ -96,7 +96,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog
{
m_scene.ForEachScenePresence(delegate(ScenePresence presence)
{
presence.ControllingClient.SendAlertMessage(message);
if (!presence.IsChildAgent)
presence.ControllingClient.SendAlertMessage(message);
});
}
@@ -204,4 +205,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog
return result;
}
}
}
}