From 68d0a09143ec57c6722228a51961dbedb6e762d7 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Fri, 9 Aug 2024 02:36:23 +0200 Subject: [PATCH] https://github.com/azerothcore/azerothcore-wotlk/pull/19491 (#189) Co-authored-by: 55Honey <71938210+55Honey@users.noreply.github.com> --- src/LuaEngine/PlayerMethods.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LuaEngine/PlayerMethods.h b/src/LuaEngine/PlayerMethods.h index 0960182..4c8b644 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" @@ -3803,7 +3804,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; }