From 649a3fc39c16db79a529567d1ab54a2dc2d49fc8 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 11 Nov 2015 06:06:22 +0000 Subject: dont abort llDialog if buttons labels are longer than 24bytes, let udp truncate. This is not as spec but allows old scripts or with minor bugs to still work --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 8154c4f..f9f21f1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -7925,11 +7925,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api Error("llDialog", "Button label cannot be blank"); return; } +/* if (buttons.Data[i].ToString().Length > 24) { Error("llDialog", "Button label cannot be longer than 24 characters"); return; } +*/ buts[i] = buttons.Data[i].ToString(); } -- cgit v1.1