From 906b00465ad7c41a018a6c6ea3f37b6c466d38cd Mon Sep 17 00:00:00 2001 From: maximius Date: Wed, 23 Sep 2009 20:19:21 -0700 Subject: *add 11 new event hooks to the OnEvents system, by Hawthorne --HG-- branch : trunk --- src/game/Chat.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/Chat.cpp') diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 34a1df42e0a..cbe8f118862 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -35,6 +35,7 @@ #include "Player.h" #include "UpdateMask.h" #include "SpellMgr.h" +#include "ScriptCalls.h" // Supported shift-links (client generated and server side) // |color|Hachievement:achievement_id:player_guid:0:0:0:0:0:0:0:0|h[name]|h|r @@ -1049,6 +1050,9 @@ int ChatHandler::ParseCommands(const char* text) std::string fullcmd = text; + if(!m_session->HandleOnPlayerChat(text)) + return 0; + /// chat case (.command or !command format) if (m_session) { -- cgit v1.2.3