diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2016-08-19 23:54:55 +0200 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2016-08-19 23:54:55 +0200 |
commit | ee0ead5e4fbc83e33d8964e6ea4cac180654510f (patch) | |
tree | 9bb93e3e1b8a76ab76b43a84b2d965395ac340d8 /src/scripts/Commands/cs_message.cpp | |
parent | 8ee36c5f642a9c4ac1d6dd45ec918a73e59d83f9 (diff) | |
parent | cb30a6b4043737957aa1d1bca27601c6577a80ec (diff) |
Merge branch 'threading_rewrite' of https://github.com/ShinDarth/azerothcore-wotlk into threading_rewrite
Diffstat (limited to 'src/scripts/Commands/cs_message.cpp')
-rw-r--r-- | src/scripts/Commands/cs_message.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/scripts/Commands/cs_message.cpp b/src/scripts/Commands/cs_message.cpp index 5b0a4c2e69..0782c5e360 100644 --- a/src/scripts/Commands/cs_message.cpp +++ b/src/scripts/Commands/cs_message.cpp @@ -22,18 +22,18 @@ class message_commandscript : public CommandScript public: message_commandscript() : CommandScript("message_commandscript") { } - ChatCommand* GetCommands() const + std::vector<ChatCommand> GetCommands() const override { - static ChatCommand commandTable[] = + static std::vector<ChatCommand> commandTable = { - { "nameannounce", SEC_GAMEMASTER, true, &HandleNameAnnounceCommand, "", NULL }, - { "gmnameannounce", SEC_GAMEMASTER, true, &HandleGMNameAnnounceCommand, "", NULL }, - { "announce", SEC_GAMEMASTER, true, &HandleAnnounceCommand, "", NULL }, - { "gmannounce", SEC_GAMEMASTER, true, &HandleGMAnnounceCommand, "", NULL }, - { "notify", SEC_GAMEMASTER, true, &HandleNotifyCommand, "", NULL }, - { "gmnotify", SEC_GAMEMASTER, true, &HandleGMNotifyCommand, "", NULL }, - { "whispers", SEC_GAMEMASTER, false, &HandleWhispersCommand, "", NULL }, - { NULL, 0, false, NULL, "", NULL } + { "nameannounce", SEC_GAMEMASTER, true, &HandleNameAnnounceCommand, "" }, + { "gmnameannounce", SEC_GAMEMASTER, true, &HandleGMNameAnnounceCommand, "" }, + { "announce", SEC_GAMEMASTER, true, &HandleAnnounceCommand, "" }, + { "gmannounce", SEC_GAMEMASTER, true, &HandleGMAnnounceCommand, "" }, + { "notify", SEC_GAMEMASTER, true, &HandleNotifyCommand, "" }, + { "gmnotify", SEC_GAMEMASTER, true, &HandleGMNotifyCommand, "" }, + { "whispers", SEC_GAMEMASTER, false, &HandleWhispersCommand, "" }, + { NULL, 0, false, NULL, "" } }; return commandTable; } |