diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/UserAccountService/UserAccountService.cs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index 8b8a8f9..7a46165 100644 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs | |||
@@ -163,6 +163,10 @@ namespace OpenSim.Services.UserAccountService | |||
163 | Int32.TryParse(d.Data["UserLevel"], out u.UserLevel); | 163 | Int32.TryParse(d.Data["UserLevel"], out u.UserLevel); |
164 | if (d.Data.ContainsKey("UserFlags") && d.Data["UserFlags"] != null) | 164 | if (d.Data.ContainsKey("UserFlags") && d.Data["UserFlags"] != null) |
165 | Int32.TryParse(d.Data["UserFlags"], out u.UserFlags); | 165 | Int32.TryParse(d.Data["UserFlags"], out u.UserFlags); |
166 | if (d.Data.ContainsKey("UserCountry") && d.Data["UserCountry"] != null) | ||
167 | u.UserCountry = d.Data["UserCountry"].ToString(); | ||
168 | else | ||
169 | u.UserTitle = string.Empty; | ||
166 | 170 | ||
167 | if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null) | 171 | if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null) |
168 | { | 172 | { |
@@ -284,7 +288,22 @@ namespace OpenSim.Services.UserAccountService | |||
284 | 288 | ||
285 | public List<UserAccount> GetUserAccounts(UUID scopeID, string query) | 289 | public List<UserAccount> GetUserAccounts(UUID scopeID, string query) |
286 | { | 290 | { |
287 | UserAccountData[] d = m_Database.GetUsers(scopeID, query); | 291 | UserAccountData[] d = m_Database.GetUsers(scopeID, query.Trim()); |
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 | |||
304 | public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where) | ||
305 | { | ||
306 | UserAccountData[] d = m_Database.GetUsersWhere(scopeID, where); | ||
288 | 307 | ||
289 | if (d == null) | 308 | if (d == null) |
290 | return new List<UserAccount>(); | 309 | return new List<UserAccount>(); |