OSDN Git Service

Update copyright year
[radegast/radegast.git] / Radegast / GUI / Consoles / AvatarPicker.cs
index 8a155ab..39bc192 100644 (file)
@@ -1,6 +1,6 @@
 // 
 // 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
@@ -81,6 +81,7 @@ namespace Radegast
             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 });
             }
         }
@@ -98,7 +99,8 @@ namespace Radegast
                     {
                         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 });
                         }
                     }));
             }