mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Correct casing on isGod and isViewerUIGod
This commit is contained in:
@@ -229,7 +229,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
fromPos = avatar.AbsolutePosition;
|
||||
fromName = avatar.Name;
|
||||
fromID = c.Sender.AgentId;
|
||||
if (avatar.isViewerUIGod)
|
||||
if (avatar.IsViewerUIGod)
|
||||
{ // let gods speak to outside or things may get confusing
|
||||
fromNamePrefix = m_adminPrefix;
|
||||
checkParcelHide = false;
|
||||
@@ -305,7 +305,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
{
|
||||
if (checkParcelHide)
|
||||
{
|
||||
if (sourceParcelID != Presencecheck.LandData.GlobalID && !presence.isViewerUIGod)
|
||||
if (sourceParcelID != Presencecheck.LandData.GlobalID && !presence.IsViewerUIGod)
|
||||
return;
|
||||
}
|
||||
if (c.Sender == null || Presencecheck.IsEitherBannedOrRestricted(c.Sender.AgentId) != true)
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
// If we're in god mode, we reverse the meaning. Offer
|
||||
// calling card becomes "Take a calling card" for that
|
||||
// person, no matter if they agree or not.
|
||||
if (sp.isViewerUIGod)
|
||||
if (sp.IsViewerUIGod)
|
||||
{
|
||||
CreateCallingCard(client.AgentId, destID, UUID.Zero, true);
|
||||
return;
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
|
||||
|
||||
sp.GrantGodlikePowers(token, godLike);
|
||||
|
||||
if (godLike && !sp.isViewerUIGod && DialogModule != null)
|
||||
if (godLike && !sp.IsViewerUIGod && DialogModule != null)
|
||||
DialogModule.SendAlertToUser(agentID, "Request for god powers denied");
|
||||
}
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure
|
||||
|
||||
GridInstantMessage m;
|
||||
|
||||
if (scene.Permissions.IsAdministrator(client.AgentId) && presence.isViewerUIGod && (!scene.Permissions.IsAdministrator(targetid)))
|
||||
if (scene.Permissions.IsAdministrator(client.AgentId) && presence.IsViewerUIGod && (!scene.Permissions.IsAdministrator(targetid)))
|
||||
{
|
||||
m = new GridInstantMessage(scene, client.AgentId,
|
||||
client.FirstName+" "+client.LastName, targetid,
|
||||
|
||||
Reference in New Issue
Block a user