diff options
author | ShinDarth <borzifrancesco@gmail.com> | 2016-08-19 20:26:58 +0200 |
---|---|---|
committer | ShinDarth <borzifrancesco@gmail.com> | 2016-08-19 20:26:58 +0200 |
commit | cb30a6b4043737957aa1d1bca27601c6577a80ec (patch) | |
tree | 2377147dbb71c8b982ea949fc5debdf4417a588a /src/scripts/Commands/cs_titles.cpp | |
parent | 55c47f8a35a294ff702e29c49da6c81b22ec6e5a (diff) |
Update chat system, based on TrinityCore commit
Diffstat (limited to 'src/scripts/Commands/cs_titles.cpp')
-rw-r--r-- | src/scripts/Commands/cs_titles.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/scripts/Commands/cs_titles.cpp b/src/scripts/Commands/cs_titles.cpp index 974b6a9cc7..aad042f61f 100644 --- a/src/scripts/Commands/cs_titles.cpp +++ b/src/scripts/Commands/cs_titles.cpp @@ -23,25 +23,25 @@ class titles_commandscript : public CommandScript public: titles_commandscript() : CommandScript("titles_commandscript") { } - ChatCommand* GetCommands() const + std::vector<ChatCommand> GetCommands() const override { - static ChatCommand titlesSetCommandTable[] = + static std::vector<ChatCommand> titlesSetCommandTable = { - { "mask", SEC_GAMEMASTER, false, &HandleTitlesSetMaskCommand, "", NULL }, - { NULL, 0, false, NULL, "", NULL } + { "mask", SEC_GAMEMASTER, false, &HandleTitlesSetMaskCommand, "" }, + { NULL, 0, false, NULL, "" } }; - static ChatCommand titlesCommandTable[] = + static std::vector<ChatCommand> titlesCommandTable = { - { "add", SEC_GAMEMASTER, false, &HandleTitlesAddCommand, "", NULL }, - { "current", SEC_GAMEMASTER, false, &HandleTitlesCurrentCommand, "", NULL }, - { "remove", SEC_GAMEMASTER, false, &HandleTitlesRemoveCommand, "", NULL }, + { "add", SEC_GAMEMASTER, false, &HandleTitlesAddCommand, "" }, + { "current", SEC_GAMEMASTER, false, &HandleTitlesCurrentCommand, "" }, + { "remove", SEC_GAMEMASTER, false, &HandleTitlesRemoveCommand, "" }, { "set", SEC_GAMEMASTER, false, NULL, "", titlesSetCommandTable }, - { NULL, 0, false, NULL, "", NULL } + { NULL, 0, false, NULL, "" } }; - static ChatCommand commandTable[] = + static std::vector<ChatCommand> commandTable = { { "titles", SEC_GAMEMASTER, false, NULL, "", titlesCommandTable }, - { NULL, 0, false, NULL, "", NULL } + { NULL, 0, false, NULL, "" } }; return commandTable; } |