aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 1731cd9..fb0e836 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -1631,7 +1631,7 @@ namespace OpenSim.Region.Environment.Scenes
1631 /// This allows the Sim owner the abiility to kick users from their sim currently. 1631 /// This allows the Sim owner the abiility to kick users from their sim currently.
1632 /// It tells the client that the agent has permission to do so. 1632 /// It tells the client that the agent has permission to do so.
1633 /// </summary> 1633 /// </summary>
1634 public void GrantGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token) 1634 public void GrantGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token, bool godStatus)
1635 { 1635 {
1636 GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket(); 1636 GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket();
1637 GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock(); 1637 GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock();
@@ -1640,7 +1640,17 @@ namespace OpenSim.Region.Environment.Scenes
1640 adb.AgentID = agentID; 1640 adb.AgentID = agentID;
1641 adb.SessionID = sessionID; // More security 1641 adb.SessionID = sessionID; // More security
1642 1642
1643 gdb.GodLevel = (byte) 250; 1643 if (godStatus)
1644 {
1645 gdb.GodLevel = (byte)250;
1646 m_godlevel = 250;
1647 }
1648 else
1649 {
1650 gdb.GodLevel = (byte)0;
1651 m_godlevel = 0;
1652 }
1653
1644 gdb.Token = token; 1654 gdb.Token = token;
1645 //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock; 1655 //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock;
1646 respondPacket.GrantData = gdb; 1656 respondPacket.GrantData = gdb;