From 3d6b2cc93cca441270f1fcc8a8e02c384d9ced02 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sun, 28 Jul 2024 09:08:16 +0200 Subject: [PATCH 1/2] https://github.com/azerothcore/azerothcore-wotlk/pull/19491 --- src/LuaEngine/PlayerMethods.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LuaEngine/PlayerMethods.h b/src/LuaEngine/PlayerMethods.h index 0960182626..b00cecf2e9 100644 --- a/src/LuaEngine/PlayerMethods.h +++ b/src/LuaEngine/PlayerMethods.h @@ -3803,7 +3803,7 @@ namespace LuaPlayer { std::string msg = Eluna::CHECKVAL(L, 2); if (msg.length() > 0) - player->GetSession()->SendNotification("%s", msg.c_str()); + ChatHandler(player->GetSession()).SendNotification("{}", msg); return 0; } From 4a63bc2d6b4bdef58c615fab247424999a7f09b2 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sun, 28 Jul 2024 09:08:43 +0200 Subject: [PATCH 2/2] Update PlayerMethods.h --- src/LuaEngine/PlayerMethods.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LuaEngine/PlayerMethods.h b/src/LuaEngine/PlayerMethods.h index b00cecf2e9..4c8b644d77 100644 --- a/src/LuaEngine/PlayerMethods.h +++ b/src/LuaEngine/PlayerMethods.h @@ -7,6 +7,7 @@ #ifndef PLAYERMETHODS_H #define PLAYERMETHODS_H +#include "Chat.h" #include "GameTime.h" #include "GossipDef.h"