From 218902bedc7f430c8401426a1cee373bfc0b5485 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 24 Sep 2008 02:58:05 +0000 Subject: Decouple AsyncCommands from XEngine and the script instance. Make all methods needed outside the API ststic. Async command processing is now wholly internal to the API. This sets the stage for the next convergence step. --- OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs index 3132eb7..6a7b622 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs @@ -113,6 +113,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat if (c.Channel == DEBUG_CHANNEL) c.Type = ChatTypeEnum.DebugChannel; + if (c.Message.Length > 1100) + c.Message = c.Message.Substring(0, 1000); + // chat works by redistributing every incoming chat // message to each avatar in the scene Vector3 pos = new Vector3(128, 128, 30); -- cgit v1.1