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/net/tmwa/chatrecv.cpp | |
parent | 121273a1f81b6476f12b32feb5c22e005623b211 (diff) | |
download | manaplus-bfd533ab5469c1c5998ee823cd861968f4ce4ef4.tar.gz manaplus-bfd533ab5469c1c5998ee823cd861968f4ce4ef4.tar.bz2 manaplus-bfd533ab5469c1c5998ee823cd861968f4ce4ef4.tar.xz manaplus-bfd533ab5469c1c5998ee823cd861968f4ce4ef4.zip |
Show also last seen in memory nick for invisible players chat messages (tmwa)
Diffstat (limited to 'src/net/tmwa/chatrecv.cpp')
-rw-r--r-- | src/net/tmwa/chatrecv.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/chatrecv.cpp b/src/net/tmwa/chatrecv.cpp index 27ca74a41..f4bb3725d 100644 --- a/src/net/tmwa/chatrecv.cpp +++ b/src/net/tmwa/chatrecv.cpp @@ -314,7 +314,12 @@ void ChatRecv::processBeingChat(Net::MessageIn &msg) if (being) sender_name = being->getName(); if (sender_name.empty()) + { sender_name = "?" + toString(CAST_S32(beingId)); + const std::string name = actorManager->getSeenPlayerById(beingId); + if (!name.empty()) + sender_name.append(" ").append(name); + } } else if (being && sender_name != being->getName() && |