Now showing friends online upon grid login.

This commit is contained in:
Diva Canto
2010-02-26 10:35:23 -08:00
parent 2af7577fab
commit bbb43f9bde
5 changed files with 17 additions and 6 deletions

View File

@@ -140,12 +140,13 @@ namespace OpenSim.Server.Base
if (name.EndsWith("[]"))
{
if (result.ContainsKey(name))
string cleanName = name.Substring(0, name.Length - 2);
if (result.ContainsKey(cleanName))
{
if (!(result[name] is List<string>))
if (!(result[cleanName] is List<string>))
continue;
List<string> l = (List<string>)result[name];
List<string> l = (List<string>)result[cleanName];
l.Add(value);
}
@@ -155,7 +156,7 @@ namespace OpenSim.Server.Base
newList.Add(value);
result[name] = newList;
result[cleanName] = newList;
}
}
else