mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243)
This commit is contained in:
@@ -32,23 +32,29 @@ EndScriptData */
|
||||
#include "ScriptMgr.h"
|
||||
#include "World.h"
|
||||
|
||||
#if AC_COMPILER == AC_COMPILER_GNU
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
class gm_commandscript : public CommandScript
|
||||
{
|
||||
public:
|
||||
gm_commandscript() : CommandScript("gm_commandscript") { }
|
||||
|
||||
std::vector<ChatCommand> GetCommands() const override
|
||||
ChatCommandTable GetCommands() const override
|
||||
{
|
||||
static std::vector<ChatCommand> gmCommandTable =
|
||||
static ChatCommandTable gmCommandTable =
|
||||
{
|
||||
{ "chat", SEC_GAMEMASTER, false, &HandleGMChatCommand, "" },
|
||||
{ "fly", SEC_GAMEMASTER, false, &HandleGMFlyCommand, "" },
|
||||
{ "ingame", SEC_PLAYER, true, &HandleGMListIngameCommand, "" },
|
||||
{ "list", SEC_GAMEMASTER, true, &HandleGMListFullCommand, "" },
|
||||
{ "visible", SEC_GAMEMASTER, false, &HandleGMVisibleCommand, "" },
|
||||
{ "", SEC_GAMEMASTER, false, &HandleGMCommand, "" }
|
||||
{ "", SEC_MODERATOR, false, &HandleGMCommand, "" }
|
||||
};
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
static ChatCommandTable commandTable =
|
||||
{
|
||||
{ "gm", SEC_MODERATOR, false, nullptr, "", gmCommandTable }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user