Correct prim counts for group land. Correct MessageTransferModule startup

0.6.1-post-fixes
Melanie Thielker 2008-11-17 08:15:43 +00:00
parent 598316c890
commit bb936d8a2f
2 changed files with 12 additions and 14 deletions

View File

@ -53,20 +53,17 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
public void Initialise(Scene scene, IConfigSource config) public void Initialise(Scene scene, IConfigSource config)
{ {
if (config.Configs["Messaging"] != null) IConfig cnf = config.Configs["Messaging"];
{ if (cnf != null && cnf.GetString(
IConfig cnf = config.Configs["Messaging"]; "MessageTransferModule", "MessageTransferModule") !=
if (cnf != null && cnf.GetString( "MessageTransferModule")
"MessageTransferModule", "MessageTransferModule") != return;
"MessageTransferModule")
return;
cnf = config.Configs["Startup"]; cnf = config.Configs["Startup"];
if (cnf != null) if (cnf != null)
m_Gridmode = cnf.GetBoolean("gridmode", false); m_Gridmode = cnf.GetBoolean("gridmode", false);
m_Enabled = true; m_Enabled = true;
}
lock (m_Scenes) lock (m_Scenes)
{ {

View File

@ -827,8 +827,9 @@ namespace OpenSim.Region.Environment.Modules.World.Land
{ {
landData.OwnerPrims += prim_count; landData.OwnerPrims += prim_count;
} }
else if (obj.GroupID == landData.GroupID || else if ((obj.GroupID == landData.GroupID ||
prim_owner == landData.GroupID) prim_owner == landData.GroupID) &&
landData.GroupID != UUID.Zero)
{ {
landData.GroupPrims += prim_count; landData.GroupPrims += prim_count;
} }