Core/Packets: converted SMSG_MOTD and SMSG_LOGIN_VERIFY_WORLD to packet class
This commit is contained in:
1 parent
61df418204
commit
4539b571bf
9 files changed
+68
-52
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user