Added scene name to config options

dsg
Dan Lake 2011-01-06 17:32:10 -08:00
parent 247bed199f
commit a339598bad
2 changed files with 2 additions and 23 deletions

View File

@ -776,27 +776,6 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
m_log.Error("No RegionSyncClients connected"); m_log.Error("No RegionSyncClients connected");
} }
#endregion #endregion
private static readonly Vector3 CenterOfRegion = new Vector3(((int)Constants.RegionSize * 0.5f), ((int)Constants.RegionSize * 0.5f),20);
// -----------------------------------------------------------------
// -----------------------------------------------------------------
internal void LocalChat(string msg, int channel)
{
OSChatMessage osm = new OSChatMessage();
osm.From = "RegionSyncServerModule";
osm.Message = msg;
osm.Type = ChatTypeEnum.Region;
osm.Position = CenterOfRegion;
osm.Sender = null;
osm.SenderUUID = OpenMetaverse.UUID.Zero; // Hmph! Still?
osm.Channel = channel;
m_log.DebugFormat("[REGION SYNC SERVER MODULE] LocalChat({0},{1})", msg, channel);
m_scene.EventManager.TriggerOnChatBroadcast(this, osm);
}
} }
} }

View File

@ -525,8 +525,8 @@ namespace OpenSim.Region.CoreModules.RegionSync.RegionSyncModule
{ {
//For now, we assume there is only one remote listener to connect to. Later on, //For now, we assume there is only one remote listener to connect to. Later on,
//we may need to modify the code to read in multiple listeners. //we may need to modify the code to read in multiple listeners.
string addr = m_sysConfig.GetString("SyncListenerIPAddress", IPAddrUnknown); string addr = m_sysConfig.GetString(m_scene.RegionInfo.RegionName + "_SyncListenerIPAddress", IPAddrUnknown);
int port = m_sysConfig.GetInt("SyncListenerPort", PortUnknown); int port = m_sysConfig.GetInt(m_scene.RegionInfo.RegionName + "_SyncListenerPort", PortUnknown);
if (!addr.Equals(IPAddrUnknown) && port != PortUnknown) if (!addr.Equals(IPAddrUnknown) && port != PortUnknown)
{ {
RegionSyncListenerInfo info = new RegionSyncListenerInfo(addr, port); RegionSyncListenerInfo info = new RegionSyncListenerInfo(addr, port);