[3.3.5] Commands: lookup player shows which character is online (#23039)

* Show 'online' for every online player in lookup player commands

(cherry picked from commit a0056951f7)
This commit is contained in:
TheWinchesters
2019-02-15 16:18:58 -03:00
committed by Shauren
parent 31dca39c05
commit 47adf2e4c8
4 changed files with 8 additions and 3 deletions

View File

@@ -1400,8 +1400,9 @@ public:
Field* characterFields = result2->Fetch();
ObjectGuid guid = ObjectGuid::Create<HighGuid::Player>(characterFields[0].GetUInt64());
std::string name = characterFields[1].GetString();
uint8 online = characterFields[2].GetUInt8();
handler->PSendSysMessage(LANG_LOOKUP_PLAYER_CHARACTER, name.c_str(), guid.ToString().c_str());
handler->PSendSysMessage(LANG_LOOKUP_PLAYER_CHARACTER, name.c_str(), guid.ToString().c_str(), online ? handler->GetTrinityString(LANG_ONLINE) : "");
++counter;
}
while (result2->NextRow() && (limit == -1 || counter < limit));