Formatting cleanup.
parent
20cd1da6bf
commit
f1f0bc23f4
|
@ -44,7 +44,7 @@ namespace OpenSim.Data
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static UUID FromDB(object id)
|
public static UUID FromDB(object id)
|
||||||
{
|
{
|
||||||
if( (id == null) || (id == DBNull.Value))
|
if ((id == null) || (id == DBNull.Value))
|
||||||
return UUID.Zero;
|
return UUID.Zero;
|
||||||
|
|
||||||
if (id.GetType() == typeof(Guid))
|
if (id.GetType() == typeof(Guid))
|
||||||
|
|
|
@ -122,7 +122,7 @@ namespace OpenSim.Data
|
||||||
int ver = FindVersion(_conn, "migrations");
|
int ver = FindVersion(_conn, "migrations");
|
||||||
if (ver <= 0) // -1 = no table, 0 = no version record
|
if (ver <= 0) // -1 = no table, 0 = no version record
|
||||||
{
|
{
|
||||||
if( ver < 0 )
|
if (ver < 0)
|
||||||
ExecuteScript("create table migrations(name varchar(100), version int)");
|
ExecuteScript("create table migrations(name varchar(100), version int)");
|
||||||
InsertVersion("migrations", 1);
|
InsertVersion("migrations", 1);
|
||||||
}
|
}
|
||||||
|
@ -288,7 +288,7 @@ namespace OpenSim.Data
|
||||||
SortedList<int, string[]> migrations = new SortedList<int, string[]>();
|
SortedList<int, string[]> migrations = new SortedList<int, string[]>();
|
||||||
|
|
||||||
string[] names = _assem.GetManifestResourceNames();
|
string[] names = _assem.GetManifestResourceNames();
|
||||||
if( names.Length == 0 ) // should never happen
|
if (names.Length == 0) // should never happen
|
||||||
return migrations;
|
return migrations;
|
||||||
|
|
||||||
Array.Sort(names); // we want all the migrations ordered
|
Array.Sort(names); // we want all the migrations ordered
|
||||||
|
@ -297,7 +297,7 @@ namespace OpenSim.Data
|
||||||
Match m = null;
|
Match m = null;
|
||||||
string sFile = Array.FindLast(names, nm => { m = _match_new.Match(nm); return m.Success; }); // ; nm.StartsWith(sPrefix, StringComparison.InvariantCultureIgnoreCase
|
string sFile = Array.FindLast(names, nm => { m = _match_new.Match(nm); return m.Success; }); // ; nm.StartsWith(sPrefix, StringComparison.InvariantCultureIgnoreCase
|
||||||
|
|
||||||
if( (m != null) && !String.IsNullOrEmpty(sFile) )
|
if ((m != null) && !String.IsNullOrEmpty(sFile))
|
||||||
{
|
{
|
||||||
/* The filename should be '<StoreName>.migrations[.NNN]' where NNN
|
/* The filename should be '<StoreName>.migrations[.NNN]' where NNN
|
||||||
* is the last version number defined in the file. If the '.NNN' part is recognized, the code can skip
|
* is the last version number defined in the file. If the '.NNN' part is recognized, the code can skip
|
||||||
|
@ -312,7 +312,7 @@ namespace OpenSim.Data
|
||||||
|
|
||||||
if (m.Groups.Count > 1 && int.TryParse(m.Groups[1].Value, out nLastVerFound))
|
if (m.Groups.Count > 1 && int.TryParse(m.Groups[1].Value, out nLastVerFound))
|
||||||
{
|
{
|
||||||
if( nLastVerFound <= after )
|
if (nLastVerFound <= after)
|
||||||
goto scan_old_style;
|
goto scan_old_style;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ namespace OpenSim.Data
|
||||||
sb.Length = 0;
|
sb.Length = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( (nVersion > 0) && (nVersion > after) && (script.Count > 0) && !migrations.ContainsKey(nVersion)) // script to the versioned script list
|
if ((nVersion > 0) && (nVersion > after) && (script.Count > 0) && !migrations.ContainsKey(nVersion)) // script to the versioned script list
|
||||||
{
|
{
|
||||||
migrations[nVersion] = script.ToArray();
|
migrations[nVersion] = script.ToArray();
|
||||||
}
|
}
|
||||||
|
@ -345,7 +345,7 @@ namespace OpenSim.Data
|
||||||
string sLine = resourceReader.ReadLine();
|
string sLine = resourceReader.ReadLine();
|
||||||
nLineNo++;
|
nLineNo++;
|
||||||
|
|
||||||
if( String.IsNullOrEmpty(sLine) || sLine.StartsWith("#") ) // ignore a comment or empty line
|
if (String.IsNullOrEmpty(sLine) || sLine.StartsWith("#")) // ignore a comment or empty line
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (sLine.Trim().Equals(":GO", StringComparison.InvariantCultureIgnoreCase))
|
if (sLine.Trim().Equals(":GO", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
@ -392,7 +392,7 @@ scan_old_style:
|
||||||
if (m.Success)
|
if (m.Success)
|
||||||
{
|
{
|
||||||
int version = int.Parse(m.Groups[1].ToString());
|
int version = int.Parse(m.Groups[1].ToString());
|
||||||
if ( (version > after) && !migrations.ContainsKey(version) )
|
if ((version > after) && !migrations.ContainsKey(version))
|
||||||
{
|
{
|
||||||
using (Stream resource = _assem.GetManifestResourceStream(s))
|
using (Stream resource = _assem.GetManifestResourceStream(s))
|
||||||
{
|
{
|
||||||
|
|
|
@ -286,7 +286,7 @@ namespace OpenSim.Data.MySQL
|
||||||
InventoryItemBase item = new InventoryItemBase();
|
InventoryItemBase item = new InventoryItemBase();
|
||||||
|
|
||||||
// TODO: this is to handle a case where NULLs creep in there, which we are not sure is endemic to the system, or legacy. It would be nice to live fix these.
|
// TODO: this is to handle a case where NULLs creep in there, which we are not sure is endemic to the system, or legacy. It would be nice to live fix these.
|
||||||
// ( DBGuid.FromDB() reads db NULLs as well, returns UUID.Zero )
|
// (DBGuid.FromDB() reads db NULLs as well, returns UUID.Zero)
|
||||||
item.CreatorId = reader["creatorID"].ToString();
|
item.CreatorId = reader["creatorID"].ToString();
|
||||||
|
|
||||||
// Be a bit safer in parsing these because the
|
// Be a bit safer in parsing these because the
|
||||||
|
|
|
@ -728,7 +728,7 @@ namespace OpenSim.Data.MySQL
|
||||||
|
|
||||||
string command = "select * from `regionwindlight` where region_id = ?regionID";
|
string command = "select * from `regionwindlight` where region_id = ?regionID";
|
||||||
|
|
||||||
using(MySqlCommand cmd = new MySqlCommand(command))
|
using (MySqlCommand cmd = new MySqlCommand(command))
|
||||||
{
|
{
|
||||||
cmd.Connection = dbcon;
|
cmd.Connection = dbcon;
|
||||||
|
|
||||||
|
|
|
@ -693,8 +693,6 @@ namespace OpenSim.Data.SQLite
|
||||||
{
|
{
|
||||||
landaccesslist.Rows.Remove(rowsToDelete[iter]);
|
landaccesslist.Rows.Remove(rowsToDelete[iter]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Commit();
|
Commit();
|
||||||
}
|
}
|
||||||
|
@ -2246,7 +2244,6 @@ namespace OpenSim.Data.SQLite
|
||||||
delete.Parameters.Add(createSqliteParameter("AccessUUID", typeof(String)));
|
delete.Parameters.Add(createSqliteParameter("AccessUUID", typeof(String)));
|
||||||
da.DeleteCommand = delete;
|
da.DeleteCommand = delete;
|
||||||
da.DeleteCommand.Connection = conn;
|
da.DeleteCommand.Connection = conn;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupRegionSettingsCommands(SqliteDataAdapter da, SqliteConnection conn)
|
private void setupRegionSettingsCommands(SqliteDataAdapter da, SqliteConnection conn)
|
||||||
|
|
|
@ -145,12 +145,12 @@ namespace OpenSim.Data.Tests
|
||||||
{
|
{
|
||||||
if (m_service != null)
|
if (m_service != null)
|
||||||
{
|
{
|
||||||
if( m_service is IDisposable)
|
if (m_service is IDisposable)
|
||||||
((IDisposable)m_service).Dispose();
|
((IDisposable)m_service).Dispose();
|
||||||
m_service = null;
|
m_service = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !String.IsNullOrEmpty(m_file) && File.Exists(m_file) )
|
if (!String.IsNullOrEmpty(m_file) && File.Exists(m_file))
|
||||||
File.Delete(m_file);
|
File.Delete(m_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -760,7 +760,7 @@ namespace OpenSim.Framework.Capabilities
|
||||||
string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000");
|
string uploaderPath = Util.RandomClass.Next(5000, 8000).ToString("0000");
|
||||||
|
|
||||||
BakedTextureUploader uploader =
|
BakedTextureUploader uploader =
|
||||||
new BakedTextureUploader( capsBase + uploaderPath,
|
new BakedTextureUploader(capsBase + uploaderPath,
|
||||||
m_httpListener);
|
m_httpListener);
|
||||||
uploader.OnUpLoad += BakedTextureUploaded;
|
uploader.OnUpLoad += BakedTextureUploaded;
|
||||||
|
|
||||||
|
|
|
@ -1691,7 +1691,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
{
|
{
|
||||||
m_log.Warn("[BASE HTTP SERVER]: Null Reference when stopping HttpServer.");
|
m_log.Warn("[BASE HTTP SERVER]: Null Reference when stopping HttpServer.");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveStreamHandler(string httpMethod, string path)
|
public void RemoveStreamHandler(string httpMethod, string path)
|
||||||
|
@ -1728,7 +1727,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoveHTTPHandler(httpMethod, path);
|
RemoveHTTPHandler(httpMethod, path);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool RemoveAgentHandler(string agent, IHttpAgentHandler handler)
|
public bool RemoveAgentHandler(string agent, IHttpAgentHandler handler)
|
||||||
|
@ -1759,7 +1757,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public bool RemoveLLSDHandler(string path, LLSDMethod handler)
|
public bool RemoveLLSDHandler(string path, LLSDMethod handler)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
@ -288,7 +288,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
public event GodlikeMessage onGodlikeMessage;
|
public event GodlikeMessage onGodlikeMessage;
|
||||||
public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
|
public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
|
||||||
|
|
||||||
|
|
||||||
#endregion Events
|
#endregion Events
|
||||||
|
|
||||||
#region Class Members
|
#region Class Members
|
||||||
|
@ -11191,8 +11190,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
outputPacket = false;
|
outputPacket = false;
|
||||||
|
|
||||||
if (m_debugPacketLevel <= 200
|
if (m_debugPacketLevel <= 200
|
||||||
&&
|
&& (packet.Type == PacketType.ImagePacket
|
||||||
(packet.Type == PacketType.ImagePacket
|
|
||||||
|| packet.Type == PacketType.ImageData
|
|| packet.Type == PacketType.ImageData
|
||||||
|| packet.Type == PacketType.LayerData
|
|| packet.Type == PacketType.LayerData
|
||||||
|| packet.Type == PacketType.CoarseLocationUpdate))
|
|| packet.Type == PacketType.CoarseLocationUpdate))
|
||||||
|
@ -11872,7 +11870,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
dialog.Data.LastName = Util.StringToBytes256(ownerLastName);
|
dialog.Data.LastName = Util.StringToBytes256(ownerLastName);
|
||||||
dialog.Data.Message = Util.StringToBytes256(message);
|
dialog.Data.Message = Util.StringToBytes256(message);
|
||||||
|
|
||||||
|
|
||||||
ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[1];
|
ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[1];
|
||||||
buttons[0] = new ScriptDialogPacket.ButtonsBlock();
|
buttons[0] = new ScriptDialogPacket.ButtonsBlock();
|
||||||
buttons[0].ButtonLabel = Util.StringToBytes256("!!llTextBox!!");
|
buttons[0].ButtonLabel = Util.StringToBytes256("!!llTextBox!!");
|
||||||
|
|
|
@ -173,7 +173,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||||
UUID itemID = UUID.Zero;
|
UUID itemID = UUID.Zero;
|
||||||
if (sp != null)
|
if (sp != null)
|
||||||
{
|
{
|
||||||
foreach(SceneObjectGroup grp in sp.GetAttachments(AttachmentPt))
|
foreach (SceneObjectGroup grp in sp.GetAttachments(AttachmentPt))
|
||||||
{
|
{
|
||||||
itemID = grp.GetFromItemID();
|
itemID = grp.GetFromItemID();
|
||||||
if (itemID != UUID.Zero)
|
if (itemID != UUID.Zero)
|
||||||
|
|
|
@ -132,7 +132,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Combat.CombatModule
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
deadAvatar.ControllingClient.SendAgentAlertMessage(deadAvatarMessage, true);
|
deadAvatar.ControllingClient.SendAgentAlertMessage(deadAvatarMessage, true);
|
||||||
if(killingAvatar != null)
|
if (killingAvatar != null)
|
||||||
killingAvatar.ControllingClient.SendAlertMessage("You fragged " + deadAvatar.Firstname + " " + deadAvatar.Lastname);
|
killingAvatar.ControllingClient.SendAlertMessage("You fragged " + deadAvatar.Firstname + " " + deadAvatar.Lastname);
|
||||||
}
|
}
|
||||||
catch (InvalidOperationException)
|
catch (InvalidOperationException)
|
||||||
|
|
|
@ -283,7 +283,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
|
||||||
"[INVENTORY ARCHIVER]: Found folder {0} {1} at {2}",
|
"[INVENTORY ARCHIVER]: Found folder {0} {1} at {2}",
|
||||||
inventoryFolder.Name,
|
inventoryFolder.Name,
|
||||||
inventoryFolder.ID,
|
inventoryFolder.ID,
|
||||||
m_invPath == String.Empty ? InventoryFolderImpl.PATH_DELIMITER : m_invPath );
|
m_invPath == String.Empty ? InventoryFolderImpl.PATH_DELIMITER : m_invPath);
|
||||||
|
|
||||||
//recurse through all dirs getting dirs and files
|
//recurse through all dirs getting dirs and files
|
||||||
SaveInvFolder(inventoryFolder, ArchiveConstants.INVENTORY_PATH, !saveFolderContentsOnly);
|
SaveInvFolder(inventoryFolder, ArchiveConstants.INVENTORY_PATH, !saveFolderContentsOnly);
|
||||||
|
|
|
@ -321,8 +321,6 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void ForceAvatarToPosition(ScenePresence avatar, Vector3? position)
|
private void ForceAvatarToPosition(ScenePresence avatar, Vector3? position)
|
||||||
{
|
{
|
||||||
if (m_scene.Permissions.IsGod(avatar.UUID)) return;
|
if (m_scene.Permissions.IsGod(avatar.UUID)) return;
|
||||||
|
@ -336,7 +334,6 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
{
|
{
|
||||||
avatar.ControllingClient.SendAlertMessage(
|
avatar.ControllingClient.SendAlertMessage(
|
||||||
"You are not allowed on this parcel because the land owner has restricted access.");
|
"You are not allowed on this parcel because the land owner has restricted access.");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void EventManagerOnAvatarEnteringNewParcel(ScenePresence avatar, int localLandID, UUID regionID)
|
public void EventManagerOnAvatarEnteringNewParcel(ScenePresence avatar, int localLandID, UUID regionID)
|
||||||
|
@ -741,7 +738,6 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
|
|
||||||
public void EventManagerOnObjectBeingRemovedFromScene(SceneObjectGroup obj)
|
public void EventManagerOnObjectBeingRemovedFromScene(SceneObjectGroup obj)
|
||||||
{
|
{
|
||||||
|
|
||||||
lock (m_landList)
|
lock (m_landList)
|
||||||
{
|
{
|
||||||
foreach (LandObject p in m_landList.Values)
|
foreach (LandObject p in m_landList.Values)
|
||||||
|
@ -1078,7 +1074,6 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
temp.Add(currentParcel);
|
temp.Add(currentParcel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1370,8 +1365,8 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
private string ProcessPropertiesUpdate(string request, string path, string param, UUID agentID, Caps caps)
|
private string ProcessPropertiesUpdate(string request, string path, string param, UUID agentID, Caps caps)
|
||||||
{
|
{
|
||||||
IClientAPI client;
|
IClientAPI client;
|
||||||
if ( ! m_scene.TryGetClient(agentID, out client) ) {
|
if (! m_scene.TryGetClient(agentID, out client)) {
|
||||||
m_log.WarnFormat("[LAND] unable to retrieve IClientAPI for {0}", agentID.ToString() );
|
m_log.WarnFormat("[LAND] unable to retrieve IClientAPI for {0}", agentID.ToString());
|
||||||
return LLSDHelpers.SerialiseLLSDReply(new LLSDEmpty());
|
return LLSDHelpers.SerialiseLLSDReply(new LLSDEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -425,7 +425,7 @@ namespace OpenSim.Region.CoreModules
|
||||||
{
|
{
|
||||||
if (m_ready)
|
if (m_ready)
|
||||||
{
|
{
|
||||||
if(m_scene.GetRootAgentCount() > 0)
|
if (m_scene.GetRootAgentCount() > 0)
|
||||||
{
|
{
|
||||||
// Ask wind plugin to generate a LL wind array to be cached locally
|
// Ask wind plugin to generate a LL wind array to be cached locally
|
||||||
// Try not to update this too often, as it may involve array copies
|
// Try not to update this too often, as it may involve array copies
|
||||||
|
|
|
@ -307,7 +307,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||||
lock (m_rootAgents)
|
lock (m_rootAgents)
|
||||||
{
|
{
|
||||||
m_rootAgents.Remove(AgentId);
|
m_rootAgents.Remove(AgentId);
|
||||||
if(m_rootAgents.Count == 0)
|
if (m_rootAgents.Count == 0)
|
||||||
StopThread();
|
StopThread();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3669,7 +3669,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public virtual void AgentCrossing(UUID agentID, Vector3 position, bool isFlying)
|
public virtual void AgentCrossing(UUID agentID, Vector3 position, bool isFlying)
|
||||||
{
|
{
|
||||||
ScenePresence presence = GetScenePresence(agentID);
|
ScenePresence presence = GetScenePresence(agentID);
|
||||||
if(presence != null)
|
if (presence != null)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -677,7 +677,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
minY = 256f;
|
minY = 256f;
|
||||||
minZ = 8192f;
|
minZ = 8192f;
|
||||||
|
|
||||||
lock(m_parts)
|
lock (m_parts)
|
||||||
{
|
{
|
||||||
foreach (SceneObjectPart part in m_parts.Values)
|
foreach (SceneObjectPart part in m_parts.Values)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1414,7 +1414,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence sp)
|
m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence sp)
|
||||||
{
|
{
|
||||||
if(!sp.IsChildAgent)
|
if (!sp.IsChildAgent)
|
||||||
sp.ControllingClient.SendAttachedSoundGainChange(UUID, (float)volume);
|
sp.ControllingClient.SendAttachedSoundGainChange(UUID, (float)volume);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
m_pendingObjects = new Queue<SceneObjectGroup>();
|
m_pendingObjects = new Queue<SceneObjectGroup>();
|
||||||
|
|
||||||
lock(m_pendingObjects)
|
lock (m_pendingObjects)
|
||||||
{
|
{
|
||||||
EntityBase[] entities = m_presence.Scene.Entities.GetEntities();
|
EntityBase[] entities = m_presence.Scene.Entities.GetEntities();
|
||||||
foreach (EntityBase e in entities)
|
foreach (EntityBase e in entities)
|
||||||
|
@ -85,7 +85,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lock(m_pendingObjects)
|
lock (m_pendingObjects)
|
||||||
{
|
{
|
||||||
while (m_pendingObjects != null && m_pendingObjects.Count > 0)
|
while (m_pendingObjects != null && m_pendingObjects.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -309,7 +309,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
GroupInfoMap["OwnerRoleID"] = OSD.FromUUID(OwnerRoleID);
|
GroupInfoMap["OwnerRoleID"] = OSD.FromUUID(OwnerRoleID);
|
||||||
GroupInfoMap["OwnersPowers"] = OSD.FromULong((ulong)m_DefaultOwnerPowers);
|
GroupInfoMap["OwnersPowers"] = OSD.FromULong((ulong)m_DefaultOwnerPowers);
|
||||||
|
|
||||||
if(SimianAddGeneric(GroupID, "Group", name, GroupInfoMap))
|
if (SimianAddGeneric(GroupID, "Group", name, GroupInfoMap))
|
||||||
{
|
{
|
||||||
AddGroupRole(requestingAgentID, GroupID, UUID.Zero, "Everyone", "Members of " + name, "Member of " + name, (ulong)m_DefaultEveryonePowers);
|
AddGroupRole(requestingAgentID, GroupID, UUID.Zero, "Everyone", "Members of " + name, "Member of " + name, (ulong)m_DefaultEveryonePowers);
|
||||||
AddGroupRole(requestingAgentID, GroupID, OwnerRoleID, "Owners", "Owners of " + name, "Owner of " + name, (ulong)m_DefaultOwnerPowers);
|
AddGroupRole(requestingAgentID, GroupID, OwnerRoleID, "Owners", "Owners of " + name, "Owner of " + name, (ulong)m_DefaultOwnerPowers);
|
||||||
|
@ -334,7 +334,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
|
|
||||||
string GroupName;
|
string GroupName;
|
||||||
OSDMap GroupInfoMap;
|
OSDMap GroupInfoMap;
|
||||||
if( SimianGetFirstGenericEntry(groupID, "GroupInfo", out GroupName, out GroupInfoMap) )
|
if (SimianGetFirstGenericEntry(groupID, "GroupInfo", out GroupName, out GroupInfoMap))
|
||||||
{
|
{
|
||||||
GroupInfoMap["Charter"] = OSD.FromString(charter);
|
GroupInfoMap["Charter"] = OSD.FromString(charter);
|
||||||
GroupInfoMap["ShowInList"] = OSD.FromBoolean(showInList);
|
GroupInfoMap["ShowInList"] = OSD.FromBoolean(showInList);
|
||||||
|
@ -379,7 +379,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
string GroupRoleMemberType = "GroupRole" + groupID.ToString();
|
string GroupRoleMemberType = "GroupRole" + groupID.ToString();
|
||||||
if (SimianGetGenericEntries(GroupRoleMemberType, roleID.ToString(), out GroupRoleMembers))
|
if (SimianGetGenericEntries(GroupRoleMemberType, roleID.ToString(), out GroupRoleMembers))
|
||||||
{
|
{
|
||||||
foreach(UUID UserID in GroupRoleMembers.Keys)
|
foreach (UUID UserID in GroupRoleMembers.Keys)
|
||||||
{
|
{
|
||||||
EnsureRoleNotSelectedByMember(groupID, roleID, UserID);
|
EnsureRoleNotSelectedByMember(groupID, roleID, UserID);
|
||||||
|
|
||||||
|
@ -724,7 +724,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
}
|
}
|
||||||
|
|
||||||
OSDMap UserGroupMemberInfo;
|
OSDMap UserGroupMemberInfo;
|
||||||
if( SimianGetGenericEntry(agentID, "GroupMember", groupID.ToString(), out UserGroupMemberInfo) )
|
if (SimianGetGenericEntry(agentID, "GroupMember", groupID.ToString(), out UserGroupMemberInfo))
|
||||||
{
|
{
|
||||||
data.AcceptNotices = UserGroupMemberInfo["AcceptNotices"].AsBoolean();
|
data.AcceptNotices = UserGroupMemberInfo["AcceptNotices"].AsBoolean();
|
||||||
data.Contribution = UserGroupMemberInfo["Contribution"].AsInteger();
|
data.Contribution = UserGroupMemberInfo["Contribution"].AsInteger();
|
||||||
|
@ -736,7 +736,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
//
|
//
|
||||||
|
|
||||||
OSDMap GroupRoleInfo;
|
OSDMap GroupRoleInfo;
|
||||||
if( SimianGetGenericEntry(groupID, "GroupRole", data.ActiveRole.ToString(), out GroupRoleInfo) )
|
if (SimianGetGenericEntry(groupID, "GroupRole", data.ActiveRole.ToString(), out GroupRoleInfo))
|
||||||
{
|
{
|
||||||
data.GroupTitle = GroupRoleInfo["Title"].AsString();
|
data.GroupTitle = GroupRoleInfo["Title"].AsString();
|
||||||
data.GroupPowers = GroupRoleInfo["Powers"].AsULong();
|
data.GroupPowers = GroupRoleInfo["Powers"].AsULong();
|
||||||
|
@ -748,7 +748,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
//
|
//
|
||||||
OSDMap GroupInfo;
|
OSDMap GroupInfo;
|
||||||
string GroupName;
|
string GroupName;
|
||||||
if( SimianGetFirstGenericEntry(groupID, "Group", out GroupName, out GroupInfo) )
|
if (SimianGetFirstGenericEntry(groupID, "Group", out GroupName, out GroupInfo))
|
||||||
{
|
{
|
||||||
data.GroupID = groupID;
|
data.GroupID = groupID;
|
||||||
data.AllowPublish = GroupInfo["AllowPublish"].AsBoolean();
|
data.AllowPublish = GroupInfo["AllowPublish"].AsBoolean();
|
||||||
|
@ -928,12 +928,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
Dictionary<string, OSDMap> GroupRoles;
|
Dictionary<string, OSDMap> GroupRoles;
|
||||||
if (SimianGetGenericEntries(groupID, "GroupRole", out GroupRoles))
|
if (SimianGetGenericEntries(groupID, "GroupRole", out GroupRoles))
|
||||||
{
|
{
|
||||||
foreach( KeyValuePair<string, OSDMap> Role in GroupRoles )
|
foreach (KeyValuePair<string, OSDMap> Role in GroupRoles)
|
||||||
{
|
{
|
||||||
Dictionary<UUID, OSDMap> GroupRoleMembers;
|
Dictionary<UUID, OSDMap> GroupRoleMembers;
|
||||||
if( SimianGetGenericEntries("GroupRole"+groupID.ToString(), Role.Key, out GroupRoleMembers) )
|
if (SimianGetGenericEntries("GroupRole"+groupID.ToString(), Role.Key, out GroupRoleMembers))
|
||||||
{
|
{
|
||||||
foreach( KeyValuePair<UUID, OSDMap> GroupRoleMember in GroupRoleMembers )
|
foreach (KeyValuePair<UUID, OSDMap> GroupRoleMember in GroupRoleMembers)
|
||||||
{
|
{
|
||||||
GroupRoleMembersData data = new GroupRoleMembersData();
|
GroupRoleMembersData data = new GroupRoleMembersData();
|
||||||
|
|
||||||
|
@ -1264,7 +1264,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString());
|
if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString());
|
||||||
maps.Add(entryMap["Key"].AsString(), (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString()));
|
maps.Add(entryMap["Key"].AsString(), (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString()));
|
||||||
}
|
}
|
||||||
if(maps.Count == 0)
|
if (maps.Count == 0)
|
||||||
{
|
{
|
||||||
if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results");
|
if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results");
|
||||||
}
|
}
|
||||||
|
@ -1352,17 +1352,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if this is an update or a request
|
// Check if this is an update or a request
|
||||||
if ( requestArgs["RequestMethod"] == "RemoveGeneric"
|
if (requestArgs["RequestMethod"] == "RemoveGeneric"
|
||||||
|| requestArgs["RequestMethod"] == "AddGeneric"
|
|| requestArgs["RequestMethod"] == "AddGeneric")
|
||||||
)
|
|
||||||
|
|
||||||
{
|
{
|
||||||
// Any and all updates cause the cache to clear
|
// Any and all updates cause the cache to clear
|
||||||
m_memoryCache.Clear();
|
m_memoryCache.Clear();
|
||||||
|
|
||||||
// Send update to server, return the response without caching it
|
// Send update to server, return the response without caching it
|
||||||
return WebUtil.PostToService(m_groupsServerURI, requestArgs);
|
return WebUtil.PostToService(m_groupsServerURI, requestArgs);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we're not doing an update, we must be requesting data
|
// If we're not doing an update, we must be requesting data
|
||||||
|
|
|
@ -960,7 +960,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( resp == null )
|
if (resp == null)
|
||||||
{
|
{
|
||||||
string UserService;
|
string UserService;
|
||||||
UUID SessionID;
|
UUID SessionID;
|
||||||
|
|
|
@ -432,7 +432,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach(string button in buttons)
|
foreach (string button in buttons)
|
||||||
{
|
{
|
||||||
if (button == String.Empty)
|
if (button == String.Empty)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1230,7 +1230,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
UUID uuid;
|
UUID uuid;
|
||||||
|
|
||||||
// Process the rules, not sure what the impact would be of changing owner or group
|
// Process the rules, not sure what the impact would be of changing owner or group
|
||||||
for (int idx = 0; idx < rules.Length; )
|
for (int idx = 0; idx < rules.Length;)
|
||||||
{
|
{
|
||||||
int code = rules.GetLSLIntegerItem(idx++);
|
int code = rules.GetLSLIntegerItem(idx++);
|
||||||
string arg = rules.GetLSLStringItem(idx++);
|
string arg = rules.GetLSLStringItem(idx++);
|
||||||
|
|
|
@ -416,7 +416,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||||
List<SensedEntity> sensedEntities = new List<SensedEntity>();
|
List<SensedEntity> sensedEntities = new List<SensedEntity>();
|
||||||
|
|
||||||
// If nobody about quit fast
|
// If nobody about quit fast
|
||||||
if(m_CmdManager.m_ScriptEngine.World.GetRootAgentCount() == 0)
|
if (m_CmdManager.m_ScriptEngine.World.GetRootAgentCount() == 0)
|
||||||
return sensedEntities;
|
return sensedEntities;
|
||||||
|
|
||||||
SceneObjectPart SensePoint = ts.host;
|
SceneObjectPart SensePoint = ts.host;
|
||||||
|
@ -485,7 +485,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||||
{
|
{
|
||||||
ScenePresence sp;
|
ScenePresence sp;
|
||||||
// Try direct lookup by UUID
|
// Try direct lookup by UUID
|
||||||
if(!m_CmdManager.m_ScriptEngine.World.TryGetScenePresence(ts.keyID, out sp))
|
if (!m_CmdManager.m_ScriptEngine.World.TryGetScenePresence(ts.keyID, out sp))
|
||||||
return sensedEntities;
|
return sensedEntities;
|
||||||
senseEntity(sp);
|
senseEntity(sp);
|
||||||
}
|
}
|
||||||
|
|
|
@ -564,7 +564,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
bool postOnRez = (bool)p[4];
|
bool postOnRez = (bool)p[4];
|
||||||
StateSource stateSource = (StateSource)p[5];
|
StateSource stateSource = (StateSource)p[5];
|
||||||
|
|
||||||
lock(m_CompileDict)
|
lock (m_CompileDict)
|
||||||
{
|
{
|
||||||
if (!m_CompileDict.ContainsKey(itemID))
|
if (!m_CompileDict.ContainsKey(itemID))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -86,7 +86,7 @@ namespace OpenSim.Services.Connectors.Hypergrid
|
||||||
paramList.Add(hash);
|
paramList.Add(hash);
|
||||||
|
|
||||||
XmlRpcRequest request = new XmlRpcRequest("link_region", paramList);
|
XmlRpcRequest request = new XmlRpcRequest("link_region", paramList);
|
||||||
string uri = "http://" + ((info.ServerURI != null && info.ServerURI != string.Empty && !info.ServerURI.StartsWith("http:")) ? info.ServerURI : info.ExternalEndPoint.Address + ":" + info.HttpPort + "/" );
|
string uri = "http://" + ((info.ServerURI != null && info.ServerURI != string.Empty && !info.ServerURI.StartsWith("http:")) ? info.ServerURI : info.ExternalEndPoint.Address + ":" + info.HttpPort + "/");
|
||||||
m_log.Debug("[GATEKEEPER SERVICE CONNECTOR]: Linking to " + uri);
|
m_log.Debug("[GATEKEEPER SERVICE CONNECTOR]: Linking to " + uri);
|
||||||
XmlRpcResponse response = null;
|
XmlRpcResponse response = null;
|
||||||
try
|
try
|
||||||
|
|
|
@ -559,5 +559,4 @@ namespace OpenSim.Tests.Common.Setup
|
||||||
sogd.InventoryDeQueueAndDelete();
|
sogd.InventoryDeQueueAndDelete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue