diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index f2e48cf..f065bae 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -1985,7 +1985,15 @@ namespace OpenSim.Region.ClientStack | |||
1985 | outPacket.ObjectData[0].ID = localID; | 1985 | outPacket.ObjectData[0].ID = localID; |
1986 | outPacket.ObjectData[0].FullID = objectID; | 1986 | outPacket.ObjectData[0].FullID = objectID; |
1987 | outPacket.ObjectData[0].OwnerID = ownerID; | 1987 | outPacket.ObjectData[0].OwnerID = ownerID; |
1988 | |||
1989 | // Anything more than 255 will cause libsecondlife to barf | ||
1990 | if (text.Length > 255) | ||
1991 | { | ||
1992 | text = text.Remove(255); | ||
1993 | } | ||
1994 | |||
1988 | outPacket.ObjectData[0].Text = Helpers.StringToField(text); | 1995 | outPacket.ObjectData[0].Text = Helpers.StringToField(text); |
1996 | |||
1989 | outPacket.ObjectData[0].TextColor[0] = color[0]; | 1997 | outPacket.ObjectData[0].TextColor[0] = color[0]; |
1990 | outPacket.ObjectData[0].TextColor[1] = color[1]; | 1998 | outPacket.ObjectData[0].TextColor[1] = color[1]; |
1991 | outPacket.ObjectData[0].TextColor[2] = color[2]; | 1999 | outPacket.ObjectData[0].TextColor[2] = color[2]; |