aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-01-31 22:27:05 +0000
committerJustin Clark-Casey (justincc)2012-01-31 22:27:05 +0000
commit647b326edcd5f80e31ebbff8bd6501c0919c267b (patch)
tree43848ecdc08a0c8ba1419e0e77bf224a5f7f23ce /OpenSim/Region
parentAdd the name of a deleted object to the console output (diff)
downloadopensim-SC_OLD-647b326edcd5f80e31ebbff8bd6501c0919c267b.zip
opensim-SC_OLD-647b326edcd5f80e31ebbff8bd6501c0919c267b.tar.gz
opensim-SC_OLD-647b326edcd5f80e31ebbff8bd6501c0919c267b.tar.bz2
opensim-SC_OLD-647b326edcd5f80e31ebbff8bd6501c0919c267b.tar.xz
Add more user feedback if an object isn't found for which delete was requested.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs
index 3e0f622..78f86cc 100644
--- a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs
@@ -140,6 +140,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
140 deletes.Add(g); 140 deletes.Add(g);
141 }); 141 });
142 142
143 if (deletes.Count == 0)
144 m_console.OutputFormat("No objects were found with owner {0}", match);
145
143 break; 146 break;
144 147
145 case "creator": 148 case "creator":
@@ -152,6 +155,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
152 deletes.Add(g); 155 deletes.Add(g);
153 }); 156 });
154 157
158 if (deletes.Count == 0)
159 m_console.OutputFormat("No objects were found with creator {0}", match);
160
155 break; 161 break;
156 162
157 case "uuid": 163 case "uuid":
@@ -164,6 +170,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
164 deletes.Add(g); 170 deletes.Add(g);
165 }); 171 });
166 172
173 if (deletes.Count == 0)
174 m_console.OutputFormat("No objects were found with uuid {0}", match);
175
167 break; 176 break;
168 177
169 case "name": 178 case "name":
@@ -173,6 +182,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
173 deletes.Add(g); 182 deletes.Add(g);
174 }); 183 });
175 184
185 if (deletes.Count == 0)
186 m_console.OutputFormat("No objects were found with name {0}", o);
187
176 break; 188 break;
177 189
178 case "outside": 190 case "outside":
@@ -198,6 +210,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
198 deletes.Add(g); 210 deletes.Add(g);
199 }); 211 });
200 212
213 if (deletes.Count == 0)
214 m_console.OutputFormat("No objects were found outside region bounds");
215
201 break; 216 break;
202 } 217 }
203 218