diff options
author | Justin Clarke Casey | 2008-04-15 22:56:18 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-04-15 22:56:18 +0000 |
commit | 550ed7b9ec1669738d0505f2646535eff376c1c9 (patch) | |
tree | 5431eda66328976d9a0ca83033eb29ad192a41ad /OpenSim/Region/ClientStack | |
parent | * Tiny, tiny, login message refinement to reduce human parsing requirements (diff) | |
download | opensim-SC-550ed7b9ec1669738d0505f2646535eff376c1c9.zip opensim-SC-550ed7b9ec1669738d0505f2646535eff376c1c9.tar.gz opensim-SC-550ed7b9ec1669738d0505f2646535eff376c1c9.tar.bz2 opensim-SC-550ed7b9ec1669738d0505f2646535eff376c1c9.tar.xz |
* Fix mantis 975 - prim text > 255 chars
Diffstat (limited to 'OpenSim/Region/ClientStack')
-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]; |