diff options
author | Dev Random | 2014-04-02 00:32:29 -0400 |
---|---|---|
committer | Michael Cerquoni | 2014-04-03 12:45:43 -0400 |
commit | 4aa483777b244962b0bc8d4048cd8b9f021c40e6 (patch) | |
tree | 56f854addfdf169928458a38f0419fcfa293f713 /OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |
parent | Reduced log levels for REST 404 errors to DEBUG (diff) | |
download | opensim-SC_OLD-4aa483777b244962b0bc8d4048cd8b9f021c40e6.zip opensim-SC_OLD-4aa483777b244962b0bc8d4048cd8b9f021c40e6.tar.gz opensim-SC_OLD-4aa483777b244962b0bc8d4048cd8b9f021c40e6.tar.bz2 opensim-SC_OLD-4aa483777b244962b0bc8d4048cd8b9f021c40e6.tar.xz |
Move new Estate commands to OpenSim.cs
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index ae956e6..54a7302 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -251,8 +251,17 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
251 | m_log.InfoFormat("[ESTATE]: Estate Owner for {0} changed to {1} ({2} {3})", dbSettings.EstateName, | 251 | m_log.InfoFormat("[ESTATE]: Estate Owner for {0} changed to {1} ({2} {3})", dbSettings.EstateName, |
252 | account.PrincipalID, account.FirstName, account.LastName); | 252 | account.PrincipalID, account.FirstName, account.LastName); |
253 | 253 | ||
254 | TriggerEstateInfoChange(); | 254 | // propagate the change |
255 | sendRegionHandshakeToAll(); | 255 | List<UUID> regions = Scene.GetEstateRegions(estateID); |
256 | UUID regionId = (regions.Count() > 0) ? regions.ElementAt(0) : UUID.Zero; | ||
257 | if (regionId != UUID.Zero) | ||
258 | { | ||
259 | ChangeDelegate change = OnEstateInfoChange; | ||
260 | |||
261 | if (change != null) | ||
262 | change(regionId); | ||
263 | } | ||
264 | |||
256 | } | 265 | } |
257 | return response; | 266 | return response; |
258 | } | 267 | } |
@@ -289,8 +298,16 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
289 | // make sure there's a log entry to document the change | 298 | // make sure there's a log entry to document the change |
290 | m_log.InfoFormat("[ESTATE]: Estate {0} renamed from \"{1}\" to \"{2}\"", estateID, oldName, newName); | 299 | m_log.InfoFormat("[ESTATE]: Estate {0} renamed from \"{1}\" to \"{2}\"", estateID, oldName, newName); |
291 | 300 | ||
292 | TriggerEstateInfoChange(); | 301 | // propagate the change |
293 | sendRegionHandshakeToAll(); | 302 | List<UUID> regions = Scene.GetEstateRegions(estateID); |
303 | UUID regionId = (regions.Count() > 0) ? regions.ElementAt(0) : UUID.Zero; | ||
304 | if (regionId != UUID.Zero) | ||
305 | { | ||
306 | ChangeDelegate change = OnEstateInfoChange; | ||
307 | |||
308 | if (change != null) | ||
309 | change(regionId); | ||
310 | } | ||
294 | } | 311 | } |
295 | } | 312 | } |
296 | return response; | 313 | return response; |