Get rid of the "no objects found" feedback for now - this doesn't work well if a command is executed over multiple scenes.

iar_mods
Justin Clark-Casey (justincc) 2012-01-31 23:06:48 +00:00
parent ab89adfaef
commit ac7cded080
1 changed files with 13 additions and 11 deletions

View File

@ -141,7 +141,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
if (sop == null) if (sop == null)
{ {
m_console.OutputFormat("No object found with uuid {0}", objectUuid); // m_console.OutputFormat("No object found with uuid {0}", objectUuid);
return; return;
} }
@ -191,8 +191,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0) // if (deletes.Count == 0)
m_console.OutputFormat("No objects were found with owner {0}", match); // m_console.OutputFormat("No objects were found with owner {0}", match);
break; break;
@ -206,8 +206,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0) // if (deletes.Count == 0)
m_console.OutputFormat("No objects were found with creator {0}", match); // m_console.OutputFormat("No objects were found with creator {0}", match);
break; break;
@ -221,8 +221,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0) // if (deletes.Count == 0)
m_console.OutputFormat("No objects were found with uuid {0}", match); // m_console.OutputFormat("No objects were found with uuid {0}", match);
break; break;
@ -233,8 +233,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0) // if (deletes.Count == 0)
m_console.OutputFormat("No objects were found with name {0}", o); // m_console.OutputFormat("No objects were found with name {0}", o);
break; break;
@ -261,12 +261,14 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0) // if (deletes.Count == 0)
m_console.OutputFormat("No objects were found outside region bounds"); // m_console.OutputFormat("No objects were found outside region bounds");
break; break;
} }
m_console.OutputFormat("Deleting {0} objects in {1}", deletes.Count, m_scene.RegionInfo.RegionName);
foreach (SceneObjectGroup g in deletes) foreach (SceneObjectGroup g in deletes)
{ {
m_console.OutputFormat("Deleting object {0} {1}", g.UUID, g.Name); m_console.OutputFormat("Deleting object {0} {1}", g.UUID, g.Name);