AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "MotdMgr.h"
Public Member Functions | |
void | SetMotd (std::string motd) |
Set a new Message of the Day. More... | |
void | LoadMotd () |
Load Message of the Day. More... | |
char const * | GetMotd () |
Get the current Message of the Day. More... | |
WorldPacket const * | GetMotdPacket () |
Get the motd packet to send at login. More... | |
Static Public Member Functions | |
static MotdMgr * | instance () |
char const * MotdMgr::GetMotd | ( | ) |
Get the current Message of the Day.
WorldPacket const * MotdMgr::GetMotdPacket | ( | ) |
Get the motd packet to send at login.
|
static |
void MotdMgr::LoadMotd | ( | ) |
Load Message of the Day.
References Field::Get(), getMSTime(), GetMSTimeDiffToNow(), LOG_INFO, LOG_WARN, LOGIN_SEL_MOTD, LoginDatabase, sConfigMgr, and SetMotd().
void MotdMgr::SetMotd | ( | std::string | motd | ) |
Set a new Message of the Day.
References SMSG_MOTD, sScriptMgr, and Acore::Tokenize().
Referenced by LoadMotd().