Core/Chat: Provide a fully-formed protocol for addons to interact with GM commands

Port From (https://github.com/TrinityCore/TrinityCore/commit/42c65c3bc22f97a96d9db481997d74e7103f8e64)
This commit is contained in:
hondacrx
2020-08-22 16:22:47 -04:00
parent 51e914e0f3
commit 4d8e6a8a57
4 changed files with 144 additions and 27 deletions
+3
View File
@@ -402,6 +402,9 @@ namespace Game
if (!WorldConfig.GetBoolValue(WorldCfg.AddonChannel))
return;
if (prefix == AddonChannelCommandHandler.PREFIX && new AddonChannelCommandHandler(this).ParseCommand(text))
return;
switch (type)
{
case ChatMsg.Guild: