mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Merge branch 'master' into careminster-presence-refactor
Conflicts: OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs OpenSim/Server/Handlers/Simulation/AgentHandlers.cs OpenSim/Services/Connectors/SimianGrid/SimianGridMaptileModule.cs OpenSim/Services/GridService/HypergridLinker.cs
This commit is contained in:
@@ -154,24 +154,26 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
|
||||
report.Append(GetColumnEntry("Type", maxTypeLength, columnPadding));
|
||||
|
||||
report.AppendFormat(
|
||||
"{0,7} {1,7} {2,9} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7} {10,7}\n",
|
||||
"{0,7} {1,7} {2,7} {3,9} {4,7} {5,7} {6,7} {7,7} {8,7} {9,8} {10,7} {11,7}\n",
|
||||
"Pkts",
|
||||
"Pkts",
|
||||
"Pkts",
|
||||
"Bytes",
|
||||
"Pkts",
|
||||
"Pkts",
|
||||
"Pkts",
|
||||
"Pkts",
|
||||
"Pkts",
|
||||
"Pkts",
|
||||
"Pkts",
|
||||
"Pkts");
|
||||
"Q Pkts",
|
||||
"Q Pkts",
|
||||
"Q Pkts",
|
||||
"Q Pkts",
|
||||
"Q Pkts",
|
||||
"Q Pkts",
|
||||
"Q Pkts",
|
||||
"Q Pkts");
|
||||
|
||||
report.AppendFormat("{0,-" + totalInfoFieldsLength + "}", "");
|
||||
report.AppendFormat(
|
||||
"{0,7} {1,7} {2,9} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7} {10,7}\n",
|
||||
"Out",
|
||||
"{0,7} {1,7} {2,7} {3,9} {4,7} {5,7} {6,7} {7,7} {8,7} {9,8} {10,7} {11,7}\n",
|
||||
"In",
|
||||
"Out",
|
||||
"Resent",
|
||||
"Unacked",
|
||||
"Resend",
|
||||
"Land",
|
||||
|
||||
@@ -63,7 +63,26 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
void SetAgentActiveGroupRole(UUID RequestingAgentID, UUID AgentID, UUID GroupID, UUID RoleID);
|
||||
void SetAgentGroupInfo(UUID RequestingAgentID, UUID AgentID, UUID GroupID, bool AcceptNotices, bool ListInProfile);
|
||||
|
||||
/// <summary>
|
||||
/// Get information about a specific group to which the user belongs.
|
||||
/// </summary>
|
||||
/// <param name="RequestingAgentID">The agent requesting the information.</param>
|
||||
/// <param name="AgentID">The agent requested.</param>
|
||||
/// <param name="GroupID">The group requested.</param>
|
||||
/// <returns>
|
||||
/// If the user is a member of the group then the data structure is returned. If not, then null is returned.
|
||||
/// </returns>
|
||||
GroupMembershipData GetAgentGroupMembership(UUID RequestingAgentID, UUID AgentID, UUID GroupID);
|
||||
|
||||
/// <summary>
|
||||
/// Get information about the groups to which a user belongs.
|
||||
/// </summary>
|
||||
/// <param name="RequestingAgentID">The agent requesting the information.</param>
|
||||
/// <param name="AgentID">The agent requested.</param>
|
||||
/// <returns>
|
||||
/// Information about the groups to which the user belongs. If the user belongs to no groups then an empty
|
||||
/// list is returned.
|
||||
/// </returns>
|
||||
List<GroupMembershipData> GetAgentGroupMemberships(UUID RequestingAgentID, UUID AgentID);
|
||||
|
||||
void AddGroupNotice(UUID RequestingAgentID, UUID groupID, UUID noticeID, string fromName, string subject, string message, byte[] binaryBucket);
|
||||
|
||||
@@ -704,7 +704,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return findings;
|
||||
}
|
||||
|
||||
@@ -712,54 +711,55 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
{
|
||||
if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
|
||||
|
||||
GroupMembershipData data = new GroupMembershipData();
|
||||
|
||||
///////////////////////////////
|
||||
// Agent Specific Information:
|
||||
//
|
||||
OSDMap UserActiveGroup;
|
||||
if (SimianGetGenericEntry(agentID, "Group", "ActiveGroup", out UserActiveGroup))
|
||||
{
|
||||
data.Active = UserActiveGroup["GroupID"].AsUUID().Equals(groupID);
|
||||
}
|
||||
GroupMembershipData data = null;
|
||||
bool foundData = false;
|
||||
|
||||
OSDMap UserGroupMemberInfo;
|
||||
if (SimianGetGenericEntry(agentID, "GroupMember", groupID.ToString(), out UserGroupMemberInfo))
|
||||
{
|
||||
data = new GroupMembershipData();
|
||||
data.AcceptNotices = UserGroupMemberInfo["AcceptNotices"].AsBoolean();
|
||||
data.Contribution = UserGroupMemberInfo["Contribution"].AsInteger();
|
||||
data.ListInProfile = UserGroupMemberInfo["ListInProfile"].AsBoolean();
|
||||
data.ActiveRole = UserGroupMemberInfo["SelectedRoleID"].AsUUID();
|
||||
data.ActiveRole = UserGroupMemberInfo["SelectedRoleID"].AsUUID();
|
||||
|
||||
///////////////////////////////
|
||||
// Agent Specific Information:
|
||||
//
|
||||
OSDMap UserActiveGroup;
|
||||
if (SimianGetGenericEntry(agentID, "Group", "ActiveGroup", out UserActiveGroup))
|
||||
{
|
||||
data.Active = UserActiveGroup["GroupID"].AsUUID().Equals(groupID);
|
||||
}
|
||||
|
||||
///////////////////////////////
|
||||
// Role Specific Information:
|
||||
//
|
||||
|
||||
OSDMap GroupRoleInfo;
|
||||
if (SimianGetGenericEntry(groupID, "GroupRole", data.ActiveRole.ToString(), out GroupRoleInfo))
|
||||
{
|
||||
data.GroupTitle = GroupRoleInfo["Title"].AsString();
|
||||
data.GroupPowers = GroupRoleInfo["Powers"].AsULong();
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////
|
||||
// Group Specific Information:
|
||||
//
|
||||
OSDMap GroupInfo;
|
||||
string GroupName;
|
||||
if (SimianGetFirstGenericEntry(groupID, "Group", out GroupName, out GroupInfo))
|
||||
{
|
||||
data.GroupID = groupID;
|
||||
data.AllowPublish = GroupInfo["AllowPublish"].AsBoolean();
|
||||
data.Charter = GroupInfo["Charter"].AsString();
|
||||
data.FounderID = GroupInfo["FounderID"].AsUUID();
|
||||
data.GroupName = GroupName;
|
||||
data.GroupPicture = GroupInfo["InsigniaID"].AsUUID();
|
||||
data.MaturePublish = GroupInfo["MaturePublish"].AsBoolean();
|
||||
data.MembershipFee = GroupInfo["MembershipFee"].AsInteger();
|
||||
data.OpenEnrollment = GroupInfo["OpenEnrollment"].AsBoolean();
|
||||
data.ShowInList = GroupInfo["ShowInList"].AsBoolean();
|
||||
}
|
||||
|
||||
///////////////////////////////
|
||||
// Group Specific Information:
|
||||
//
|
||||
OSDMap GroupInfo;
|
||||
string GroupName;
|
||||
if (SimianGetFirstGenericEntry(groupID, "Group", out GroupName, out GroupInfo))
|
||||
{
|
||||
data.GroupID = groupID;
|
||||
data.AllowPublish = GroupInfo["AllowPublish"].AsBoolean();
|
||||
data.Charter = GroupInfo["Charter"].AsString();
|
||||
data.FounderID = GroupInfo["FounderID"].AsUUID();
|
||||
data.GroupName = GroupName;
|
||||
data.GroupPicture = GroupInfo["InsigniaID"].AsUUID();
|
||||
data.MaturePublish = GroupInfo["MaturePublish"].AsBoolean();
|
||||
data.MembershipFee = GroupInfo["MembershipFee"].AsInteger();
|
||||
data.OpenEnrollment = GroupInfo["OpenEnrollment"].AsBoolean();
|
||||
data.ShowInList = GroupInfo["ShowInList"].AsBoolean();
|
||||
}
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user