mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243)
This commit is contained in:
@@ -31,14 +31,20 @@ EndScriptData */
|
||||
#include "ScriptMgr.h"
|
||||
#include "TicketMgr.h"
|
||||
|
||||
#if AC_COMPILER == AC_COMPILER_GNU
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
class go_commandscript : public CommandScript
|
||||
{
|
||||
public:
|
||||
go_commandscript() : CommandScript("go_commandscript") { }
|
||||
|
||||
std::vector<ChatCommand> GetCommands() const override
|
||||
ChatCommandTable GetCommands() const override
|
||||
{
|
||||
static std::vector<ChatCommand> goCommandTable =
|
||||
static ChatCommandTable goCommandTable =
|
||||
{
|
||||
{ "creature", SEC_MODERATOR, false, &HandleGoCreatureCommand, "" },
|
||||
{ "graveyard", SEC_MODERATOR, false, &HandleGoGraveyardCommand, "" },
|
||||
@@ -53,7 +59,7 @@ public:
|
||||
{ "", SEC_MODERATOR, false, &HandleGoXYZCommand, "" }
|
||||
};
|
||||
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
static ChatCommandTable commandTable =
|
||||
{
|
||||
{ "go", SEC_MODERATOR, false, nullptr, "", goCommandTable }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user