diff options
Diffstat (limited to 'OpenSim/Server')
-rwxr-xr-x | OpenSim/Server/Base/CommandManager.cs | 5 | ||||
-rwxr-xr-x | OpenSim/Server/Handlers/Asset/AssetServerConnector.cs | 26 |
2 files changed, 13 insertions, 18 deletions
diff --git a/OpenSim/Server/Base/CommandManager.cs b/OpenSim/Server/Base/CommandManager.cs index 9ada974..bb103a0 100755 --- a/OpenSim/Server/Base/CommandManager.cs +++ b/OpenSim/Server/Base/CommandManager.cs | |||
@@ -179,7 +179,6 @@ namespace OpenSim.Server.Base | |||
179 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; | 179 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; |
180 | bool enabled = (bool)plugin["enabled"]; | 180 | bool enabled = (bool)plugin["enabled"]; |
181 | MainConsole.Instance.Output("{0}) {1} {2} rev. {3}", | 181 | MainConsole.Instance.Output("{0}) {1} {2} rev. {3}", |
182 | null, | ||
183 | k, | 182 | k, |
184 | enabled == true ? "[ ]" : "[X]", | 183 | enabled == true ? "[ ]" : "[X]", |
185 | plugin["name"], plugin["version"]); | 184 | plugin["name"], plugin["version"]); |
@@ -217,7 +216,6 @@ namespace OpenSim.Server.Base | |||
217 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; | 216 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; |
218 | bool enabled = (bool)plugin["enabled"]; | 217 | bool enabled = (bool)plugin["enabled"]; |
219 | MainConsole.Instance.Output("{0}) {1} {2} rev. {3}", | 218 | MainConsole.Instance.Output("{0}) {1} {2} rev. {3}", |
220 | null, | ||
221 | k, | 219 | k, |
222 | enabled == true ? "[ ]" : "[X]", | 220 | enabled == true ? "[ ]" : "[X]", |
223 | plugin["name"], plugin["version"]); | 221 | plugin["name"], plugin["version"]); |
@@ -238,7 +236,6 @@ namespace OpenSim.Server.Base | |||
238 | // name, version, repository | 236 | // name, version, repository |
239 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; | 237 | Dictionary<string, object> plugin = (Dictionary<string, object>)result[k]; |
240 | MainConsole.Instance.Output("{0}) {1} rev. {2} {3}", | 238 | MainConsole.Instance.Output("{0}) {1} rev. {2} {3}", |
241 | null, | ||
242 | k, | 239 | k, |
243 | plugin["name"], | 240 | plugin["name"], |
244 | plugin["version"], | 241 | plugin["version"], |
@@ -313,7 +310,6 @@ namespace OpenSim.Server.Base | |||
313 | Dictionary<string, object> repo = (Dictionary<string, object>)result[k]; | 310 | Dictionary<string, object> repo = (Dictionary<string, object>)result[k]; |
314 | bool enabled = (bool)repo["enabled"]; | 311 | bool enabled = (bool)repo["enabled"]; |
315 | MainConsole.Instance.Output("{0}) {1} {2}", | 312 | MainConsole.Instance.Output("{0}) {1} {2}", |
316 | null, | ||
317 | k, | 313 | k, |
318 | enabled == true ? "[ ]" : "[X]", | 314 | enabled == true ? "[ ]" : "[X]", |
319 | repo["name"], repo["url"]); | 315 | repo["name"], repo["url"]); |
@@ -334,7 +330,6 @@ namespace OpenSim.Server.Base | |||
334 | PluginManager.AddinInfo(ndx, out result); | 330 | PluginManager.AddinInfo(ndx, out result); |
335 | 331 | ||
336 | MainConsole.Instance.Output("Name: {0}\nURL: {1}\nFile: {2}\nAuthor: {3}\nCategory: {4}\nDesc: {5}", | 332 | MainConsole.Instance.Output("Name: {0}\nURL: {1}\nFile: {2}\nAuthor: {3}\nCategory: {4}\nDesc: {5}", |
337 | null, | ||
338 | result["name"], | 333 | result["name"], |
339 | result["url"], | 334 | result["url"], |
340 | result["file_name"], | 335 | result["file_name"], |
diff --git a/OpenSim/Server/Handlers/Asset/AssetServerConnector.cs b/OpenSim/Server/Handlers/Asset/AssetServerConnector.cs index b710ec1..511dbeb 100755 --- a/OpenSim/Server/Handlers/Asset/AssetServerConnector.cs +++ b/OpenSim/Server/Handlers/Asset/AssetServerConnector.cs | |||
@@ -125,14 +125,14 @@ namespace OpenSim.Server.Handlers.Asset | |||
125 | 125 | ||
126 | if (asset == null || asset.Data.Length == 0) | 126 | if (asset == null || asset.Data.Length == 0) |
127 | { | 127 | { |
128 | MainConsole.Instance.Output("Could not find asset with ID {0}", null, args[2]); | 128 | MainConsole.Instance.Output("Could not find asset with ID {0}", args[2]); |
129 | return; | 129 | return; |
130 | } | 130 | } |
131 | 131 | ||
132 | if (!m_AssetService.Delete(asset.ID)) | 132 | if (!m_AssetService.Delete(asset.ID)) |
133 | MainConsole.Instance.Output("ERROR: Could not delete asset {0} {1}", null, asset.ID, asset.Name); | 133 | MainConsole.Instance.Output("ERROR: Could not delete asset {0} {1}", asset.ID, asset.Name); |
134 | else | 134 | else |
135 | MainConsole.Instance.Output("Deleted asset {0} {1}", null, asset.ID, asset.Name); | 135 | MainConsole.Instance.Output("Deleted asset {0} {1}", asset.ID, asset.Name); |
136 | } | 136 | } |
137 | 137 | ||
138 | void HandleDumpAsset(string module, string[] args) | 138 | void HandleDumpAsset(string module, string[] args) |
@@ -148,14 +148,14 @@ namespace OpenSim.Server.Handlers.Asset | |||
148 | 148 | ||
149 | if (!UUID.TryParse(rawAssetId, out assetId)) | 149 | if (!UUID.TryParse(rawAssetId, out assetId)) |
150 | { | 150 | { |
151 | MainConsole.Instance.Output("ERROR: {0} is not a valid ID format", null, rawAssetId); | 151 | MainConsole.Instance.Output("ERROR: {0} is not a valid ID format", rawAssetId); |
152 | return; | 152 | return; |
153 | } | 153 | } |
154 | 154 | ||
155 | AssetBase asset = m_AssetService.Get(assetId.ToString()); | 155 | AssetBase asset = m_AssetService.Get(assetId.ToString()); |
156 | if (asset == null) | 156 | if (asset == null) |
157 | { | 157 | { |
158 | MainConsole.Instance.Output("ERROR: No asset found with ID {0}", null, assetId); | 158 | MainConsole.Instance.Output("ERROR: No asset found with ID {0}", assetId); |
159 | return; | 159 | return; |
160 | } | 160 | } |
161 | 161 | ||
@@ -172,7 +172,7 @@ namespace OpenSim.Server.Handlers.Asset | |||
172 | } | 172 | } |
173 | } | 173 | } |
174 | 174 | ||
175 | MainConsole.Instance.Output("Asset dumped to file {0}", null, fileName); | 175 | MainConsole.Instance.Output("Asset dumped to file {0}", fileName); |
176 | } | 176 | } |
177 | 177 | ||
178 | void HandleShowAsset(string module, string[] args) | 178 | void HandleShowAsset(string module, string[] args) |
@@ -193,13 +193,13 @@ namespace OpenSim.Server.Handlers.Asset | |||
193 | 193 | ||
194 | int i; | 194 | int i; |
195 | 195 | ||
196 | MainConsole.Instance.Output("Name: {0}", null, asset.Name); | 196 | MainConsole.Instance.Output("Name: {0}", asset.Name); |
197 | MainConsole.Instance.Output("Description: {0}", null, asset.Description); | 197 | MainConsole.Instance.Output("Description: {0}", asset.Description); |
198 | MainConsole.Instance.Output("Type: {0} (type number = {1})", null, (AssetType)asset.Type, asset.Type); | 198 | MainConsole.Instance.Output("Type: {0} (type number = {1})", (AssetType)asset.Type, asset.Type); |
199 | MainConsole.Instance.Output("Content-type: {0}", null, asset.Metadata.ContentType); | 199 | MainConsole.Instance.Output("Content-type: {0}", asset.Metadata.ContentType); |
200 | MainConsole.Instance.Output("Size: {0} bytes", null, asset.Data.Length); | 200 | MainConsole.Instance.Output("Size: {0} bytes", asset.Data.Length); |
201 | MainConsole.Instance.Output("Temporary: {0}", null, asset.Temporary ? "yes" : "no"); | 201 | MainConsole.Instance.Output("Temporary: {0}", asset.Temporary ? "yes" : "no"); |
202 | MainConsole.Instance.Output("Flags: {0}", null, asset.Metadata.Flags); | 202 | MainConsole.Instance.Output("Flags: {0}", asset.Metadata.Flags); |
203 | 203 | ||
204 | for (i = 0 ; i < 5 ; i++) | 204 | for (i = 0 ; i < 5 ; i++) |
205 | { | 205 | { |