From e1c20a32ca414ce95e1f41e92956eab5ca17f342 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 15 Mar 2019 18:17:50 +0000 Subject: [PATCH] LSL: limit sittext and touchtext to length current viewers cand display --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index ab3562f35b..5dc626076c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -7991,13 +7991,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public void llSetTouchText(string text) { m_host.AddScriptLPS(1); - m_host.TouchName = text; + if(text.Length <= 9) + m_host.TouchName = text; + else + m_host.TouchName = text.Substring(0, 9); } public void llSetSitText(string text) { m_host.AddScriptLPS(1); - m_host.SitName = text; + if (text.Length <= 9) + m_host.SitName = text; + else + m_host.SitName = text.Substring(0, 9); } public void llSetCameraEyeOffset(LSL_Vector offset)