fix: server motd
This commit is contained in:
parent
ccaa74a9a7
commit
97ae1496a7
10 changed files with 101 additions and 83 deletions
|
|
@ -19,6 +19,7 @@ EndScriptData */
|
|||
#include "ScriptMgr.h"
|
||||
#include "GitRevision.h"
|
||||
#include "AvgDiffTracker.h"
|
||||
#include "ServerMotd.h"
|
||||
|
||||
class server_commandscript : public CommandScript
|
||||
{
|
||||
|
|
@ -122,7 +123,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;
|
||||
}
|
||||
|
||||
|
|
@ -286,7 +287,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue