mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-16 21:09:50 -04:00
*Update to Mangos 6848. Source: Mangos.
--HG-- branch : trunk
This commit is contained in:
@@ -1275,14 +1275,12 @@ void WorldSession::HandleWhoisOpcode(WorldPacket& recv_data)
|
||||
return;
|
||||
}
|
||||
|
||||
if(charname.empty())
|
||||
if(charname.empty() || !normalizePlayerName (charname))
|
||||
{
|
||||
SendNotification(LANG_NEED_CHARACTER_NAME);
|
||||
return;
|
||||
}
|
||||
|
||||
normalizePlayerName (charname);
|
||||
|
||||
Player *plr = objmgr.GetPlayer(charname.c_str());
|
||||
|
||||
if(!plr)
|
||||
|
||||
Reference in New Issue
Block a user