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

@@ -72,7 +72,9 @@ void RASession::Start()
TC_LOG_INFO("commands.ra", "User %s (IP: %s) authenticated correctly to RA", username.c_str(), GetRemoteIpAddress().c_str());
// Authentication successful, send the motd
Send(std::string(std::string(sWorld->GetMotd()) + "\r\n").c_str());
// Authentication successful, send the motd
for (std::string const& line : sWorld->GetMotd())
Send(line.c_str());
// Read commands
for (;;)