minor: small message adjustment and unnecessary code elimination when notifying client of no build permission

0.7.4.1
Justin Clark-Casey (justincc) 2012-03-31 01:07:14 +01:00
parent c2b98cfd4e
commit 69fc8c4985
2 changed files with 2 additions and 2 deletions

View File

@ -938,7 +938,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
ILandObject land = m_Scene.LandChannel.GetLandObject(pos.X, pos.Y);
remoteClient.SendAlertMessage(string.Format(
"Can't rez object '{0}' at <{1:F3}, {2:F3}, {3:F3}> on parcel '{4}' in region {5}.",
item.Name, pos.X, pos.Y, pos.Z, land != null ? land.LandData.Name : "Unknow", m_Scene.RegionInfo.RegionName));
item.Name, pos.X, pos.Y, pos.Z, land != null ? land.LandData.Name : "Unknown", m_Scene.RegionInfo.RegionName));
return false;
}

View File

@ -1978,7 +1978,7 @@ namespace OpenSim.Region.Framework.Scenes
else
{
IClientAPI client = null;
if (this.TryGetClient(ownerID, out client))
if (TryGetClient(ownerID, out client))
client.SendAlertMessage("You cannot create objects here.");
}
}