//
// Radegast Metaverse Client
-// Copyright (c) 2009-2010, Radegast Development Team
+// Copyright (c) 2009-2014, Radegast Development Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
List<NearbyAvatar> nearAvatars = instance.TabConsole.NearbyAvatars;
for (int i = 0; i < nearAvatars.Count; i++)
{
+ string name = instance.Names.Get(nearAvatars[i].ID, nearAvatars[i].Name);
lvwNear.Items.Add(new ListViewItem() { Text = nearAvatars[i].Name, Tag = nearAvatars[i].ID });
}
}
{
foreach (KeyValuePair<UUID, string> kvp in e.Avatars)
{
- lvwSearch.Items.Add(new ListViewItem(kvp.Value) { Text = kvp.Value, Tag = kvp.Key });
+ string name = instance.Names.Get(kvp.Key, kvp.Value);
+ lvwSearch.Items.Add(new ListViewItem(name) { Text = kvp.Value, Tag = kvp.Key });
}
}));
}