dont send bad profiles to viewer

LSLKeyTest
UbitUmarov 2016-07-02 13:53:17 +01:00
parent cd34f978fb
commit a6ee06d630
1 changed files with 3 additions and 0 deletions

View File

@ -11135,6 +11135,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
GroupProfileData d = m_GroupsModule.GroupProfileRequest(this,
groupProfileRequest.GroupData.GroupID);
if(d.GroupID == UUID.Zero) // don't send broken data
return true;
groupProfileReply.GroupData.GroupID = d.GroupID;
groupProfileReply.GroupData.Name = Util.StringToBytes256(d.Name);
groupProfileReply.GroupData.Charter = Util.StringToBytes1024(d.Charter);