aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar
diff options
context:
space:
mode:
authorMelanie Thielker2010-07-30 15:03:03 +0200
committerMelanie Thielker2010-07-30 15:03:03 +0200
commitf9280374d2e44f66145718c880119383c2dc2a71 (patch)
treeb100b0430a783c0f53e0e78596158496b10f5a4d /OpenSim/Region/CoreModules/Avatar
parentMerge branch 'master' into careminster-presence-refactor (diff)
downloadopensim-SC-f9280374d2e44f66145718c880119383c2dc2a71.zip
opensim-SC-f9280374d2e44f66145718c880119383c2dc2a71.tar.gz
opensim-SC-f9280374d2e44f66145718c880119383c2dc2a71.tar.bz2
opensim-SC-f9280374d2e44f66145718c880119383c2dc2a71.tar.xz
Bannination fixes. Objects in nonpublic parcels were muted by default. Gods
were muted, too.
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
index 9c8cbc6..50d2f9d 100644
--- a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
@@ -244,7 +244,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
244 ILandObject Presencecheck = s.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y); 244 ILandObject Presencecheck = s.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y);
245 if (Presencecheck != null) 245 if (Presencecheck != null)
246 { 246 {
247 if (Presencecheck.IsEitherBannedOrRestricted(c.SenderUUID) != true) 247 // This will pass all chat from objects. Not
248 // perfect, but it will do. For now. Better
249 // than the prior behavior of muting all
250 // objects on a parcel with access restrictions
251 if (c.Sender == null || Presencecheck.IsEitherBannedOrRestricted(c.Sender.AgentId) != true)
248 { 252 {
249 TrySendChatMessage(presence, fromPos, regionPos, fromID, fromNamePrefix+fromName, c.Type, message, sourceType); 253 TrySendChatMessage(presence, fromPos, regionPos, fromID, fromNamePrefix+fromName, c.Type, message, sourceType);
250 } 254 }