summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_event.cpp
diff options
context:
space:
mode:
authorShinDarth <borzifrancesco@gmail.com>2016-08-19 20:26:58 +0200
committerShinDarth <borzifrancesco@gmail.com>2016-08-19 20:26:58 +0200
commitcb30a6b4043737957aa1d1bca27601c6577a80ec (patch)
tree2377147dbb71c8b982ea949fc5debdf4417a588a /src/scripts/Commands/cs_event.cpp
parent55c47f8a35a294ff702e29c49da6c81b22ec6e5a (diff)
Update chat system, based on TrinityCore commit
Diffstat (limited to 'src/scripts/Commands/cs_event.cpp')
-rw-r--r--src/scripts/Commands/cs_event.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/scripts/Commands/cs_event.cpp b/src/scripts/Commands/cs_event.cpp
index 6bf70143c5..759849da0f 100644
--- a/src/scripts/Commands/cs_event.cpp
+++ b/src/scripts/Commands/cs_event.cpp
@@ -23,20 +23,20 @@ class event_commandscript : public CommandScript
public:
event_commandscript() : CommandScript("event_commandscript") { }
- ChatCommand* GetCommands() const
+ std::vector<ChatCommand> GetCommands() const override
{
- static ChatCommand eventCommandTable[] =
+ static std::vector<ChatCommand> eventCommandTable =
{
- { "activelist", SEC_GAMEMASTER, true, &HandleEventActiveListCommand, "", NULL },
- { "start", SEC_GAMEMASTER, true, &HandleEventStartCommand, "", NULL },
- { "stop", SEC_GAMEMASTER, true, &HandleEventStopCommand, "", NULL },
- { "", SEC_GAMEMASTER, true, &HandleEventInfoCommand, "", NULL },
- { NULL, 0, false, NULL, "", NULL }
+ { "activelist", SEC_GAMEMASTER, true, &HandleEventActiveListCommand, "" },
+ { "start", SEC_GAMEMASTER, true, &HandleEventStartCommand, "" },
+ { "stop", SEC_GAMEMASTER, true, &HandleEventStopCommand, "" },
+ { "", SEC_GAMEMASTER, true, &HandleEventInfoCommand, "" },
+ { NULL, 0, false, NULL, "" }
};
- static ChatCommand commandTable[] =
+ static std::vector<ChatCommand> commandTable =
{
{ "event", SEC_GAMEMASTER, false, NULL, "", eventCommandTable },
- { NULL, 0, false, NULL, "", NULL }
+ { NULL, 0, false, NULL, "" }
};
return commandTable;
}