fix: server motd

This commit is contained in:
FrancescoBorzi
2019-01-19 02:48:00 +01:00
parent ccaa74a9a7
commit 97ae1496a7
10 changed files with 101 additions and 83 deletions

View File

@@ -114,6 +114,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/src/server/game/Mails
${CMAKE_SOURCE_DIR}/src/server/game/Maps
${CMAKE_SOURCE_DIR}/src/server/game/Miscellaneous
${CMAKE_SOURCE_DIR}/src/server/game/Motd
${CMAKE_SOURCE_DIR}/src/server/game/Movement
${CMAKE_SOURCE_DIR}/src/server/game/Movement/Spline
${CMAKE_SOURCE_DIR}/src/server/game/Movement/MovementGenerators

View File

@@ -17,6 +17,7 @@
#include "Util.h"
#include "World.h"
#include "SHA1.h"
#include "ServerMotd.h"
RASocket::RASocket()
{
@@ -349,7 +350,7 @@ int RASocket::svc(void)
}
// send motd
if (send(std::string(sWorld->GetMotd()) + "\r\n") == -1)
if (send(std::string(Motd::GetMotd()) + "\r\n") == -1)
return -1;
for (;;)