diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-12 01:10:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-12 01:10:55 +0300 |
commit | bfd533ab5469c1c5998ee823cd861968f4ce4ef4 (patch) | |
tree | 6701f8a5802da3ae526f5122892878f96595a201 /src/actormanager.cpp | |
parent | 121273a1f81b6476f12b32feb5c22e005623b211 (diff) | |
download | mv-bfd533ab5469c1c5998ee823cd861968f4ce4ef4.tar.gz mv-bfd533ab5469c1c5998ee823cd861968f4ce4ef4.tar.bz2 mv-bfd533ab5469c1c5998ee823cd861968f4ce4ef4.tar.xz mv-bfd533ab5469c1c5998ee823cd861968f4ce4ef4.zip |
Show also last seen in memory nick for invisible players chat messages (tmwa)
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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> } } +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) { |