summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_gm.cpp
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2016-08-19 23:54:55 +0200
committerYehonal <yehonal.azeroth@gmail.com>2016-08-19 23:54:55 +0200
commitee0ead5e4fbc83e33d8964e6ea4cac180654510f (patch)
tree9bb93e3e1b8a76ab76b43a84b2d965395ac340d8 /src/scripts/Commands/cs_gm.cpp
parent8ee36c5f642a9c4ac1d6dd45ec918a73e59d83f9 (diff)
parentcb30a6b4043737957aa1d1bca27601c6577a80ec (diff)
Merge branch 'threading_rewrite' of https://github.com/ShinDarth/azerothcore-wotlk into threading_rewrite
Diffstat (limited to 'src/scripts/Commands/cs_gm.cpp')
-rw-r--r--src/scripts/Commands/cs_gm.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/scripts/Commands/cs_gm.cpp b/src/scripts/Commands/cs_gm.cpp
index cf8d8e6448..3debda2bbc 100644
--- a/src/scripts/Commands/cs_gm.cpp
+++ b/src/scripts/Commands/cs_gm.cpp
@@ -25,22 +25,22 @@ class gm_commandscript : public CommandScript
public:
gm_commandscript() : CommandScript("gm_commandscript") { }
- ChatCommand* GetCommands() const
+ std::vector<ChatCommand> GetCommands() const override
{
- static ChatCommand gmCommandTable[] =
+ static std::vector<ChatCommand> gmCommandTable =
{
- { "chat", SEC_GAMEMASTER, false, &HandleGMChatCommand, "", NULL },
- { "fly", SEC_ADMINISTRATOR, false, &HandleGMFlyCommand, "", NULL },
- //{ "ingame", SEC_PLAYER, true, &HandleGMListIngameCommand, "", NULL },
- { "list", SEC_ADMINISTRATOR, true, &HandleGMListFullCommand, "", NULL },
- { "visible", SEC_GAMEMASTER, false, &HandleGMVisibleCommand, "", NULL },
- { "", SEC_GAMEMASTER, false, &HandleGMCommand, "", NULL },
- { NULL, 0, false, NULL, "", NULL }
+ { "chat", SEC_GAMEMASTER, false, &HandleGMChatCommand, "" },
+ { "fly", SEC_ADMINISTRATOR, false, &HandleGMFlyCommand, "" },
+ //{ "ingame", SEC_PLAYER, true, &HandleGMListIngameCommand, "" },
+ { "list", SEC_ADMINISTRATOR, true, &HandleGMListFullCommand, "" },
+ { "visible", SEC_GAMEMASTER, false, &HandleGMVisibleCommand, "" },
+ { "", SEC_GAMEMASTER, false, &HandleGMCommand, "" },
+ { NULL, 0, false, NULL, "" }
};
- static ChatCommand commandTable[] =
+ static std::vector<ChatCommand> commandTable =
{
{ "gm", SEC_GAMEMASTER, false, NULL, "", gmCommandTable },
- { NULL, 0, false, NULL, "", NULL }
+ { NULL, 0, false, NULL, "" }
};
return commandTable;
}