Bannination fixes. Objects in nonpublic parcels were muted by default. Gods

were muted, too.
This commit is contained in:
Melanie Thielker
2010-07-30 15:03:03 +02:00
parent 7a9e246ccd
commit f9280374d2
2 changed files with 6 additions and 2 deletions

View File

@@ -244,7 +244,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
ILandObject Presencecheck = s.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y);
if (Presencecheck != null)
{
if (Presencecheck.IsEitherBannedOrRestricted(c.SenderUUID) != true)
// This will pass all chat from objects. Not
// perfect, but it will do. For now. Better
// than the prior behavior of muting all
// objects on a parcel with access restrictions
if (c.Sender == null || Presencecheck.IsEitherBannedOrRestricted(c.Sender.AgentId) != true)
{
TrySendChatMessage(presence, fromPos, regionPos, fromID, fromNamePrefix+fromName, c.Type, message, sourceType);
}