aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Chat/Chat.cpp')
-rw-r--r--src/server/game/Chat/Chat.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp
index dc26c3cf0c7..1a219ba9085 100644
--- a/src/server/game/Chat/Chat.cpp
+++ b/src/server/game/Chat/Chat.cpp
@@ -19,6 +19,7 @@
#include "AccountMgr.h"
#include "CellImpl.h"
#include "CharacterCache.h"
+#include "ChatCommand.h"
#include "ChatPackets.h"
#include "Common.h"
#include "DatabaseEnv.h"
@@ -40,6 +41,13 @@
Player* ChatHandler::GetPlayer() { return m_session ? m_session->GetPlayer() : nullptr; }
+char* ChatHandler::LineFromMessage(char*& pos)
+{
+ char* start = strtok(pos, "\n");
+ pos = nullptr;
+ return start;
+}
+
// 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