diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Gods')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs b/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs index db02379..8d3c10d 100644 --- a/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs | |||
@@ -112,19 +112,19 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods | |||
112 | client.OnGodKickUser += KickUser; | 112 | client.OnGodKickUser += KickUser; |
113 | client.OnRequestGodlikePowers += RequestGodlikePowers; | 113 | client.OnRequestGodlikePowers += RequestGodlikePowers; |
114 | } | 114 | } |
115 | 115 | ||
116 | public void UnsubscribeFromClientEvents(IClientAPI client) | 116 | public void UnsubscribeFromClientEvents(IClientAPI client) |
117 | { | 117 | { |
118 | client.OnGodKickUser -= KickUser; | 118 | client.OnGodKickUser -= KickUser; |
119 | client.OnRequestGodlikePowers -= RequestGodlikePowers; | 119 | client.OnRequestGodlikePowers -= RequestGodlikePowers; |
120 | } | 120 | } |
121 | 121 | ||
122 | private void OnRegisterCaps(UUID agentID, Caps caps) | 122 | private void OnRegisterCaps(UUID agentID, Caps caps) |
123 | { | 123 | { |
124 | string uri = "/CAPS/" + UUID.Random(); | 124 | string uri = "/CAPS/" + UUID.Random(); |
125 | 125 | ||
126 | caps.RegisterHandler( | 126 | caps.RegisterHandler( |
127 | "UntrustedSimulatorMessage", | 127 | "UntrustedSimulatorMessage", |
128 | new RestStreamHandler("POST", uri, HandleUntrustedSimulatorMessage, "UntrustedSimulatorMessage", null)); | 128 | new RestStreamHandler("POST", uri, HandleUntrustedSimulatorMessage, "UntrustedSimulatorMessage", null)); |
129 | } | 129 | } |
130 | 130 | ||
@@ -176,7 +176,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods | |||
176 | if (godLike && sp.GodLevel < 200 && DialogModule != null) | 176 | if (godLike && sp.GodLevel < 200 && DialogModule != null) |
177 | DialogModule.SendAlertToUser(agentID, "Request for god powers denied"); | 177 | DialogModule.SendAlertToUser(agentID, "Request for god powers denied"); |
178 | } | 178 | } |
179 | 179 | ||
180 | /// <summary> | 180 | /// <summary> |
181 | /// Kicks or freezes User specified from the simulator. This logs them off of the grid | 181 | /// Kicks or freezes User specified from the simulator. This logs them off of the grid |
182 | /// </summary> | 182 | /// </summary> |
@@ -261,7 +261,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods | |||
261 | if(sp.IsDeleted || sp.IsChildAgent) | 261 | if(sp.IsDeleted || sp.IsChildAgent) |
262 | return; | 262 | return; |
263 | sp.ControllingClient.Kick(reason); | 263 | sp.ControllingClient.Kick(reason); |
264 | sp.Scene.CloseAgent(sp.UUID, true); | 264 | sp.Scene.CloseAgent(sp.UUID, true); |
265 | } | 265 | } |
266 | 266 | ||
267 | private void OnIncomingInstantMessage(GridInstantMessage msg) | 267 | private void OnIncomingInstantMessage(GridInstantMessage msg) |