aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie Thielker2010-07-30 15:03:03 +0200
committerMelanie Thielker2010-07-30 15:03:03 +0200
commitf9280374d2e44f66145718c880119383c2dc2a71 (patch)
treeb100b0430a783c0f53e0e78596158496b10f5a4d
parentMerge branch 'master' into careminster-presence-refactor (diff)
downloadopensim-SC_OLD-f9280374d2e44f66145718c880119383c2dc2a71.zip
opensim-SC_OLD-f9280374d2e44f66145718c880119383c2dc2a71.tar.gz
opensim-SC_OLD-f9280374d2e44f66145718c880119383c2dc2a71.tar.bz2
opensim-SC_OLD-f9280374d2e44f66145718c880119383c2dc2a71.tar.xz
Bannination fixes. Objects in nonpublic parcels were muted by default. Gods
were muted, too.
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs6
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
2 files changed, 6 insertions, 2 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 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 8dc83c3..15af8b1 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -6075,7 +6075,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6075 return m_host.ParentGroup.RootPart.AttachmentPoint; 6075 return m_host.ParentGroup.RootPart.AttachmentPoint;
6076 } 6076 }
6077 6077
6078 public LSL_Integer llGetFreeMemory() 6078 public virtual LSL_Integer llGetFreeMemory()
6079 { 6079 {
6080 m_host.AddScriptLPS(1); 6080 m_host.AddScriptLPS(1);
6081 // Make scripts designed for LSO happy 6081 // Make scripts designed for LSO happy