mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40: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 "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
#if AC_COMPILER == AC_COMPILER_GNU
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
class instance_commandscript : public CommandScript
|
||||
{
|
||||
public:
|
||||
instance_commandscript() : CommandScript("instance_commandscript") { }
|
||||
|
||||
std::vector<ChatCommand> GetCommands() const override
|
||||
ChatCommandTable GetCommands() const override
|
||||
{
|
||||
static std::vector<ChatCommand> instanceCommandTable =
|
||||
static ChatCommandTable instanceCommandTable =
|
||||
{
|
||||
{ "listbinds", SEC_MODERATOR, false, &HandleInstanceListBindsCommand, "" },
|
||||
{ "unbind", SEC_GAMEMASTER, false, &HandleInstanceUnbindCommand, "" },
|
||||
@@ -48,7 +54,7 @@ public:
|
||||
{ "getbossstate", SEC_MODERATOR, true, &HandleInstanceGetBossStateCommand, "" }
|
||||
};
|
||||
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
static ChatCommandTable commandTable =
|
||||
{
|
||||
{ "instance", SEC_MODERATOR, true, nullptr, "", instanceCommandTable }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user