mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243)
This commit is contained in:
@@ -28,32 +28,38 @@ enum Spells
|
||||
BG_SPELL_DESERTER = 26013
|
||||
};
|
||||
|
||||
#if AC_COMPILER == AC_COMPILER_GNU
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
class deserter_commandscript : public CommandScript
|
||||
{
|
||||
public:
|
||||
deserter_commandscript() : CommandScript("deserter_commandscript") { }
|
||||
|
||||
std::vector<ChatCommand> GetCommands() const override
|
||||
ChatCommandTable GetCommands() const override
|
||||
{
|
||||
static std::vector<ChatCommand> deserterinstanceCommandTable =
|
||||
static ChatCommandTable deserterinstanceCommandTable =
|
||||
{
|
||||
{ "add", SEC_ADMINISTRATOR, false, &HandleDeserterInstanceAdd, "" },
|
||||
{ "remove", SEC_ADMINISTRATOR, false, &HandleDeserterInstanceRemove, "" }
|
||||
};
|
||||
|
||||
static std::vector<ChatCommand> deserterBGCommandTable =
|
||||
static ChatCommandTable deserterBGCommandTable =
|
||||
{
|
||||
{ "add", SEC_ADMINISTRATOR, false, &HandleDeserterBGAdd, "" },
|
||||
{ "remove", SEC_ADMINISTRATOR, false, &HandleDeserterBGRemove, "" }
|
||||
};
|
||||
|
||||
static std::vector<ChatCommand> deserterCommandTable =
|
||||
static ChatCommandTable deserterCommandTable =
|
||||
{
|
||||
{ "instance", SEC_ADMINISTRATOR, false, nullptr, "", deserterinstanceCommandTable },
|
||||
{ "bg", SEC_ADMINISTRATOR, false, nullptr, "", deserterBGCommandTable }
|
||||
};
|
||||
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
static ChatCommandTable commandTable =
|
||||
{
|
||||
{ "deserter", SEC_ADMINISTRATOR, false, nullptr, "", deserterCommandTable }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user