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

@@ -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 (;;)