When giving inventory to someone, use preferred name and link it in log.

This commit is contained in:
Liru Færs
2019-11-03 12:30:15 -05:00
parent 021ba21b4f
commit 6048019926
2 changed files with 10 additions and 3 deletions

View File

@@ -349,9 +349,10 @@ void LLGiveInventory::logInventoryOffer(const LLUUID& to_agent, const LLUUID &im
else
{
std::string full_name;
if (gCacheName->getFullName(to_agent, full_name))
if (LLAvatarNameCache::getNSName(to_agent, full_name))
{
LLChat chat(LLTrans::getString("inventory_item_offered_to") + " " + full_name);
std::string getAvatarSLURL(const LLUUID& id, const std::string& name);
LLChat chat(LLTrans::getString("inventory_item_offered_to") + ' ' + getAvatarSLURL(to_agent, full_name));
chat.mSourceType = CHAT_SOURCE_SYSTEM;
LLFloaterChat::addChatHistory(chat);
}