Core/Packets: converted SMSG_MOTD and SMSG_LOGIN_VERIFY_WORLD to packet class

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

No files matched your search

+4 -1
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;
}