Core/Packets: converted SMSG_MOTD and SMSG_LOGIN_VERIFY_WORLD to packet class

This commit is contained in:
Ovahlord
2020-04-11 18:22:01 +02:00
parent 61df418204
commit 4539b571bf
9 changed files with 68 additions and 52 deletions

View File

@@ -273,7 +273,10 @@ public:
// Display the 'Message of the day' for the realm
static bool HandleServerMotdCommand(ChatHandler* handler, char const* /*args*/)
{
handler->PSendSysMessage(LANG_MOTD_CURRENT, sWorld->GetMotd());
std::string motd;
for (std::string const& line : sWorld->GetMotd())
motd += line;
handler->PSendSysMessage(LANG_MOTD_CURRENT, motd.c_str());
return true;
}