mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 00:00:13 +00:00
fix: include class name in /who response chat messages
This commit is contained in:
parent
641f943268
commit
ee7de739fc
1 changed files with 3 additions and 1 deletions
|
|
@ -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<Class>(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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue