diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs')
-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; |