change lldialog and llTextBox maximum message lenght to 512 bytes as specification.

avinationmerge
UbitUmarov 2015-11-10 14:47:36 +00:00
parent ae9d40c7d0
commit 38aad774f7
1 changed files with 3 additions and 3 deletions

View File

@ -2437,7 +2437,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// this is the username of the *owner* // this is the username of the *owner*
dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName); dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName);
dialog.Data.LastName = Util.StringToBytes256(ownerLastName); dialog.Data.LastName = Util.StringToBytes256(ownerLastName);
dialog.Data.Message = Util.StringToBytes1024(msg); dialog.Data.Message = Util.StringToBytes(msg,512);
dialog.Data.ImageID = textureID; dialog.Data.ImageID = textureID;
dialog.Data.ChatChannel = ch; dialog.Data.ChatChannel = ch;
ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[buttonlabels.Length]; ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[buttonlabels.Length];
@ -13172,7 +13172,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// this is the username of the *owner* // this is the username of the *owner*
dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName); dialog.Data.FirstName = Util.StringToBytes256(ownerFirstName);
dialog.Data.LastName = Util.StringToBytes256(ownerLastName); dialog.Data.LastName = Util.StringToBytes256(ownerLastName);
dialog.Data.Message = Util.StringToBytes256(message); dialog.Data.Message = Util.StringToBytes(message,512);
ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[1]; ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[1];
buttons[0] = new ScriptDialogPacket.ButtonsBlock(); buttons[0] = new ScriptDialogPacket.ButtonsBlock();