aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Chat.cpp
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-09-06 23:36:23 +0200
committerShauren <shauren.trinity@gmail.com>2022-02-05 13:57:50 +0100
commit706163743d481e092111401752c9cbb056b35e69 (patch)
treeeca161d19bec27a57de0e7e258019bd40b179149 /src/server/game/Chat/Chat.cpp
parentca498ffab23e9be7a4ffc6ea6adbfa3c01d5e6f6 (diff)
[3.3.5] Scripts/Commands: .arena command conversion (PR #25407)
(cherry picked from commit b63d655e20a0facf14fc77798c52ea67d8551fa7)
Diffstat (limited to 'src/server/game/Chat/Chat.cpp')
-rw-r--r--src/server/game/Chat/Chat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp
index ae2d0792f60..1601823a568 100644
--- a/src/server/game/Chat/Chat.cpp
+++ b/src/server/game/Chat/Chat.cpp
@@ -38,6 +38,8 @@
#include <boost/algorithm/string/replace.hpp>
#include <sstream>
+Player* ChatHandler::GetPlayer() { return m_session ? m_session->GetPlayer() : nullptr; }
+
// Lazy loading of the command table cache from commands and the
// ScriptMgr should be thread safe since the player commands,
// cli commands and ScriptMgr updates are all dispatched one after