From bfd533ab5469c1c5998ee823cd861968f4ce4ef4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Feb 2016 01:10:55 +0300 Subject: Show also last seen in memory nick for invisible players chat messages (tmwa) --- src/actormanager.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/actormanager.cpp') diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 6b27e3205..d851864a3 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -2062,6 +2062,16 @@ void ActorManager::updateSeenPlayers(const std::set } } +std::string ActorManager::getSeenPlayerById(const BeingId id) +{ + if (!mEnableIdCollecting) + return std::string(); + + if (mIdName.find(id) != mIdName.end() && !mIdName[id].empty()) + return *(mIdName[id].begin()); + return std::string(); +} + #ifdef EATHENA_SUPPORT void ActorManager::removeRoom(const int chatId) { -- cgit v1.2.3-60-g2f50