aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_server.cpp b/src/server/scripts/Commands/cs_server.cpp
index 50b9b37031f..620c70599e5 100644
--- a/src/server/scripts/Commands/cs_server.cpp
+++ b/src/server/scripts/Commands/cs_server.cpp
@@ -30,6 +30,7 @@ EndScriptData */
#include "ScriptMgr.h"
#include "GitRevision.h"
#include "Util.h"
+#include "ServerMotd.h"
#include "GameTime.h"
#include "UpdateTime.h"
@@ -127,7 +128,7 @@ 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());
+ handler->PSendSysMessage(LANG_MOTD_CURRENT, Motd::GetMotd());
return true;
}
@@ -249,7 +250,7 @@ public:
// Define the 'Message of the day' for the realm
static bool HandleServerSetMotdCommand(ChatHandler* handler, char const* args)
{
- sWorld->SetMotd(args);
+ Motd::SetMotd(args);
handler->PSendSysMessage(LANG_MOTD_NEW, args);
return true;
}