refactor(Core/Autobroadcast): Move autobroadcast to it's own file (#15147)

This commit is contained in:
Kitzunu
2023-02-21 20:18:25 +01:00
committed by GitHub
parent cc6fcb6912
commit 99f5fa79aa
8 changed files with 202 additions and 113 deletions

View File

@@ -24,6 +24,7 @@ EndScriptData */
#include "AchievementMgr.h"
#include "AuctionHouseMgr.h"
#include "AutobroadcastMgr.h"
#include "BattlegroundMgr.h"
#include "Chat.h"
#include "CreatureTextMgr.h"
@@ -401,7 +402,7 @@ public:
static bool HandleReloadAutobroadcastCommand(ChatHandler* handler)
{
LOG_INFO("server.loading", "Re-Loading Autobroadcasts...");
sWorld->LoadAutobroadcasts();
sAutobroadcastMgr->LoadAutobroadcasts();
handler->SendGlobalGMSysMessage("DB table `autobroadcast` reloaded.");
return true;
}