aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-03-20 23:55:57 -0300
committerariel- <ariel-@users.noreply.github.com>2017-03-21 00:51:13 -0300
commit8be85a54088855b64738e1f1e2bd96b28ccad6b4 (patch)
treefc05e3af19a03af2b25af0bfdf117c2ca73c85cb /src/server/scripts/Commands
parent2a462e93093d177a0e0bedf3e94ac2cf4e66a3c3 (diff)
Core/Misc: cache server MOTD and properly format it for RA and when issuing .server motd
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;
}