From 6c735e0828063dd6e83dc6bd4c35266dd948035e Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 5 Mar 2009 19:32:27 +0000 Subject: * Replace some string to byte conversions for object/item name/description fields with the LLUtil function that prevents the max string size from being breached --- OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs | 5 +++-- OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs index 551c6e2..337644d 100644 --- a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs @@ -81,9 +81,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat } } - m_log.InfoFormat("[CHAT] initialized for {0} w:{1} s:{2} S:{3}", scene.RegionInfo.RegionName, + m_log.InfoFormat("[CHAT]: Initialized for {0} w:{1} s:{2} S:{3}", scene.RegionInfo.RegionName, m_whisperdistance, m_saydistance, m_shoutdistance); } + public virtual void PostInitialise() { } @@ -199,8 +200,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat } } - static private Vector3 CenterOfRegion = new Vector3(128, 128, 30); + public virtual void OnChatBroadcast(Object sender, OSChatMessage c) { // unless the chat to be broadcast is of type Region, we diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index fe97714..4ae617d 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs @@ -101,7 +101,7 @@ namespace OpenSim.Region.CoreModules.World.Land lock (m_scene) { - m_scene.LandChannel = (ILandChannel) landChannel; + m_scene.LandChannel = (ILandChannel)landChannel; } } -- cgit v1.1