mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Packets: converted SMSG_MOTD and SMSG_LOGIN_VERIFY_WORLD to packet class
This commit is contained in:
@@ -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