mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
fix: server motd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user