diff options
Diffstat (limited to 'OpenSim/Services/UserAccountService')
-rw-r--r-- | OpenSim/Services/UserAccountService/UserAccountService.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index f376cf8..cbd6f35 100644 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs | |||
@@ -148,6 +148,10 @@ namespace OpenSim.Services.UserAccountService | |||
148 | Int32.TryParse(d.Data["UserLevel"], out u.UserLevel); | 148 | Int32.TryParse(d.Data["UserLevel"], out u.UserLevel); |
149 | if (d.Data.ContainsKey("UserFlags") && d.Data["UserFlags"] != null) | 149 | if (d.Data.ContainsKey("UserFlags") && d.Data["UserFlags"] != null) |
150 | Int32.TryParse(d.Data["UserFlags"], out u.UserFlags); | 150 | Int32.TryParse(d.Data["UserFlags"], out u.UserFlags); |
151 | if (d.Data.ContainsKey("UserCountry") && d.Data["UserCountry"] != null) | ||
152 | u.UserCountry = d.Data["UserCountry"].ToString(); | ||
153 | else | ||
154 | u.UserTitle = string.Empty; | ||
151 | 155 | ||
152 | if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null) | 156 | if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null) |
153 | { | 157 | { |
@@ -282,6 +286,21 @@ namespace OpenSim.Services.UserAccountService | |||
282 | return ret; | 286 | return ret; |
283 | } | 287 | } |
284 | 288 | ||
289 | public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where) | ||
290 | { | ||
291 | UserAccountData[] d = m_Database.GetUsersWhere(scopeID, where); | ||
292 | |||
293 | if (d == null) | ||
294 | return new List<UserAccount>(); | ||
295 | |||
296 | List<UserAccount> ret = new List<UserAccount>(); | ||
297 | |||
298 | foreach (UserAccountData data in d) | ||
299 | ret.Add(MakeUserAccount(data)); | ||
300 | |||
301 | return ret; | ||
302 | } | ||
303 | |||
285 | #endregion | 304 | #endregion |
286 | 305 | ||
287 | #region Console commands | 306 | #region Console commands |