From ee7de739fc24d613d4c053a21ee021e8c4760845 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Thu, 12 Mar 2026 08:49:18 -0700 Subject: [PATCH] fix: include class name in /who response chat messages --- src/game/game_handler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 3b643674..773f9a91 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -18324,10 +18324,12 @@ void GameHandler::handleWho(network::Packet& packet) { if (packet.getSize() - packet.getReadPos() >= 4) zoneId = packet.readUInt32(); + const char* className = getClassName(static_cast(classId)); + std::string msg = " " + playerName; if (!guildName.empty()) msg += " <" + guildName + ">"; - msg += " - Level " + std::to_string(level); + msg += " - Level " + std::to_string(level) + " " + className; if (zoneId != 0) { std::string zoneName = getAreaName(zoneId); if (!zoneName.empty())