aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 19214ec..f9ee590 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4678,7 +4678,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4678 UUID av = new UUID(); 4678 UUID av = new UUID();
4679 if (!UUID.TryParse(agent,out av)) 4679 if (!UUID.TryParse(agent,out av))
4680 { 4680 {
4681 //LSLError("First parameter to llDialog needs to be a key");
4682 return; 4681 return;
4683 } 4682 }
4684 4683
@@ -7175,20 +7174,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7175 } 7174 }
7176 if (buttons.Length > 12) 7175 if (buttons.Length > 12)
7177 { 7176 {
7178 LSLError("No more than 12 buttons can be shown"); 7177 ShoutError("button list too long, must be 12 or fewer entries");
7179 return;
7180 } 7178 }
7181 string[] buts = new string[buttons.Length]; 7179 int length = buttons.Length;
7182 for (int i = 0; i < buttons.Length; i++) 7180 if (length > 12)
7181 length = 12;
7182
7183 string[] buts = new string[length];
7184 for (int i = 0; i < length; i++)
7183 { 7185 {
7184 if (buttons.Data[i].ToString() == String.Empty) 7186 if (buttons.Data[i].ToString() == String.Empty)
7185 { 7187 {
7186 LSLError("button label cannot be blank"); 7188 ShoutError("button label cannot be blank");
7187 return; 7189 return;
7188 } 7190 }
7189 if (buttons.Data[i].ToString().Length > 24) 7191 if (buttons.Data[i].ToString().Length > 24)
7190 { 7192 {
7191 llWhisper(ScriptBaseClass.DEBUG_CHANNEL, "button label cannot be longer than 24 characters"); 7193 ShoutError("button label cannot be longer than 24 characters");
7192 return; 7194 return;
7193 } 7195 }
7194 buts[i] = buttons.Data[i].ToString(); 7196 buts[i] = buttons.Data[i].ToString();