mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim
This commit is contained in:
@@ -48,6 +48,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
private int m_saydistance = 30;
|
||||
private int m_shoutdistance = 100;
|
||||
private int m_whisperdistance = 10;
|
||||
private string m_adminprefix = String.Empty;
|
||||
private List<Scene> m_scenes = new List<Scene>();
|
||||
|
||||
internal object m_syncy = new object();
|
||||
@@ -76,6 +77,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
m_whisperdistance = config.Configs["Chat"].GetInt("whisper_distance", m_whisperdistance);
|
||||
m_saydistance = config.Configs["Chat"].GetInt("say_distance", m_saydistance);
|
||||
m_shoutdistance = config.Configs["Chat"].GetInt("shout_distance", m_shoutdistance);
|
||||
m_adminprefix = config.Configs["Chat"].GetString("admin_prefix", m_adminprefix);
|
||||
}
|
||||
|
||||
public virtual void AddRegion(Scene scene)
|
||||
@@ -207,6 +209,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
fromPos = avatar.AbsolutePosition;
|
||||
fromName = avatar.Name;
|
||||
fromID = c.Sender.AgentId;
|
||||
if (avatar.GodLevel > 100)
|
||||
fromName = m_adminprefix + fromName;
|
||||
|
||||
break;
|
||||
|
||||
@@ -255,14 +259,23 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
string fromName = c.From;
|
||||
|
||||
UUID fromID = UUID.Zero;
|
||||
UUID ownerID = UUID.Zero;
|
||||
ChatSourceType sourceType = ChatSourceType.Object;
|
||||
if (null != c.Sender)
|
||||
{
|
||||
ScenePresence avatar = (c.Scene as Scene).GetScenePresence(c.Sender.AgentId);
|
||||
fromID = c.Sender.AgentId;
|
||||
ownerID = c.Sender.AgentId;
|
||||
fromName = avatar.Name;
|
||||
sourceType = ChatSourceType.Agent;
|
||||
}
|
||||
if (c.SenderObject != null)
|
||||
{
|
||||
SceneObjectPart senderObject = (SceneObjectPart)c.SenderObject;
|
||||
fromID = senderObject.UUID;
|
||||
ownerID = senderObject.OwnerID;
|
||||
fromName = senderObject.Name;
|
||||
}
|
||||
|
||||
// m_log.DebugFormat("[CHAT] Broadcast: fromID {0} fromName {1}, cType {2}, sType {3}", fromID, fromName, cType, sourceType);
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Land
|
||||
|
||||
public LandData GetLandData(ulong regionHandle, uint x, uint y)
|
||||
{
|
||||
m_log.DebugFormat("[LAND IN CONNECTOR]: GetLandData for {0}. Count = {2}",
|
||||
m_log.DebugFormat("[LAND IN CONNECTOR]: GetLandData for {0}. Count = {1}",
|
||||
regionHandle, m_Scenes.Count);
|
||||
foreach (Scene s in m_Scenes)
|
||||
{
|
||||
|
||||
@@ -214,7 +214,8 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||
|
||||
private void handleEstateRestartSimRequest(IClientAPI remoteClient, int timeInSeconds)
|
||||
{
|
||||
m_scene.Restart(timeInSeconds);
|
||||
// m_scene.Restart(timeInSeconds);
|
||||
remoteClient.SendBlueBoxMessage(UUID.Zero, "System", "Restart is not available");
|
||||
}
|
||||
|
||||
private void handleChangeEstateCovenantRequest(IClientAPI remoteClient, UUID estateCovenantID)
|
||||
|
||||
Reference in New Issue
Block a user