mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Bannination fixes. Objects in nonpublic parcels were muted by default. Gods
were muted, too.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user