summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tmwa/chatrecv.cpp5
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() &&