mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
refactor(Core/Chat): Move SendNotification to ChatHander (#19491)
* refactor(Core/Chat): Move SendNotification to ChatHander * Update Battleground.cpp * fix build * Update src/server/game/Chat/Chat.h
This commit is contained in:
@@ -464,7 +464,7 @@ public:
|
||||
|
||||
auto SetCommentatorMod = [&](bool enable)
|
||||
{
|
||||
session->SendNotification(enable ? "Commentator mode on" : "Commentator mode off");
|
||||
handler->SendNotification(enable ? "Commentator mode on" : "Commentator mode off");
|
||||
session->GetPlayer()->SetCommentator(enable);
|
||||
};
|
||||
|
||||
@@ -508,7 +508,7 @@ public:
|
||||
|
||||
auto SetDevMod = [&](bool enable)
|
||||
{
|
||||
session->SendNotification(enable ? LANG_DEV_ON : LANG_DEV_OFF);
|
||||
handler->SendNotification(enable ? LANG_DEV_ON : LANG_DEV_OFF);
|
||||
session->GetPlayer()->SetDeveloper(enable);
|
||||
sScriptMgr->OnHandleDevCommand(handler->GetSession()->GetPlayer(), enable);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user