aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorUbitUmarov2015-11-10 14:47:36 +0000
committerUbitUmarov2015-11-10 14:47:36 +0000
commit38aad774f7f3470e87f6510c4530684d87c3ad7b (patch)
tree28356329d841edf0d1c3acaf7bb60df115411efc /OpenSim/Region/ClientStack
parent add a StringToBytes variant that takes Maximum lenght as argument. (diff)
downloadopensim-SC-38aad774f7f3470e87f6510c4530684d87c3ad7b.zip
opensim-SC-38aad774f7f3470e87f6510c4530684d87c3ad7b.tar.gz
opensim-SC-38aad774f7f3470e87f6510c4530684d87c3ad7b.tar.bz2
opensim-SC-38aad774f7f3470e87f6510c4530684d87c3ad7b.tar.xz
change lldialog and llTextBox maximum message lenght to 512 bytes as specification.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 41debb3..79b37fa 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -2437,14 +2437,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2437 // this is the username of the *owner* 2437 // this is the username of the *owner*
2438 dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName); 2438 dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName);
2439 dialog.Data.LastName = Util.StringToBytes256(ownerLastName); 2439 dialog.Data.LastName = Util.StringToBytes256(ownerLastName);
2440 dialog.Data.Message = Util.StringToBytes1024(msg); 2440 dialog.Data.Message = Util.StringToBytes(msg,512);
2441 dialog.Data.ImageID = textureID; 2441 dialog.Data.ImageID = textureID;
2442 dialog.Data.ChatChannel = ch; 2442 dialog.Data.ChatChannel = ch;
2443 ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[buttonlabels.Length]; 2443 ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[buttonlabels.Length];
2444 for (int i = 0; i < buttonlabels.Length; i++) 2444 for (int i = 0; i < buttonlabels.Length; i++)
2445 { 2445 {
2446 buttons[i] = new ScriptDialogPacket.ButtonsBlock(); 2446 buttons[i] = new ScriptDialogPacket.ButtonsBlock();
2447 buttons[i].ButtonLabel = Util.StringToBytes256(buttonlabels[i]); 2447 buttons[i].ButtonLabel = Util.StringToBytes256(buttonlabels[i]);
2448 } 2448 }
2449 dialog.Buttons = buttons; 2449 dialog.Buttons = buttons;
2450 2450
@@ -13172,7 +13172,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
13172 // this is the username of the *owner* 13172 // this is the username of the *owner*
13173 dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName); 13173 dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName);
13174 dialog.Data.LastName = Util.StringToBytes256(ownerLastName); 13174 dialog.Data.LastName = Util.StringToBytes256(ownerLastName);
13175 dialog.Data.Message = Util.StringToBytes256(message); 13175 dialog.Data.Message = Util.StringToBytes(message,512);
13176 13176
13177 ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[1]; 13177 ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[1];
13178 buttons[0] = new ScriptDialogPacket.ButtonsBlock(); 13178 buttons[0] = new ScriptDialogPacket.ButtonsBlock();