aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteGridData.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/SQLite/SQLiteGridData.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteGridData.cs b/OpenSim/Data/SQLite/SQLiteGridData.cs
index f715c0e..3e1c67a 100644
--- a/OpenSim/Data/SQLite/SQLiteGridData.cs
+++ b/OpenSim/Data/SQLite/SQLiteGridData.cs
@@ -210,6 +210,25 @@ namespace OpenSim.Data.SQLite
210 return AddProfile(profile); 210 return AddProfile(profile);
211 } 211 }
212 212
213 /// <summary>
214 /// Deletes a sim profile from the database
215 /// </summary>
216 /// <param name="uuid">the sim UUID</param>
217 /// <returns>Successful?</returns>
218 //public DataResponse DeleteProfile(RegionProfileData profile)
219 override public DataResponse DeleteProfile(string uuid)
220 {
221 Dictionary<string, string> param = new Dictionary<string, string>();
222 param["uuid"] = uuid;
223
224 IDbCommand result = database.Query("DELETE FROM regions WHERE uuid = @uuid", param);
225 if (result.ExecuteNonQuery() > 0)
226 {
227 return DataResponse.RESPONSE_OK;
228 }
229 return DataResponse.RESPONSE_ERROR;
230 }
231
213 /// <summary> 232 /// <summary>
214 /// DEPRECATED. Attempts to authenticate a region by comparing a shared secret. 233 /// DEPRECATED. Attempts to authenticate a region by comparing a shared secret.
215 /// </summary> 234 /// </summary>