aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
index 9b41083..dcfc630 100644
--- a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
@@ -236,12 +236,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
236 fromName = avatar.Name; 236 fromName = avatar.Name;
237 fromID = c.Sender.AgentId; 237 fromID = c.Sender.AgentId;
238 if (avatar.GodLevel >= 200) 238 if (avatar.GodLevel >= 200)
239 { 239 { // let gods speak to outside or things may get confusing
240 fromNamePrefix = m_adminPrefix; 240 fromNamePrefix = m_adminPrefix;
241 checkParcelHide = false;
242 }
243 else
244 {
245 checkParcelHide = true;
241 } 246 }
242 destination = UUID.Zero; // Avatars cant "SayTo" 247 destination = UUID.Zero; // Avatars cant "SayTo"
243 ownerID = c.Sender.AgentId; 248 ownerID = c.Sender.AgentId;
244 checkParcelHide = true; 249
245 hidePos = fromPos; 250 hidePos = fromPos;
246 break; 251 break;
247 252
@@ -305,7 +310,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
305 // objects on a parcel with access restrictions 310 // objects on a parcel with access restrictions
306 if (checkParcelHide) 311 if (checkParcelHide)
307 { 312 {
308 if (sourceParcelID != Presencecheck.LandData.GlobalID) 313 if (sourceParcelID != Presencecheck.LandData.GlobalID && presence.GodLevel < 200)
309 return; 314 return;
310 } 315 }
311 if (c.Sender == null || Presencecheck.IsEitherBannedOrRestricted(c.Sender.AgentId) != true) 316 if (c.Sender == null || Presencecheck.IsEitherBannedOrRestricted(c.Sender.AgentId) != true)