mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
Fix commands and starting to use nullptr instead of NULL
This commit is contained in:
@@ -29,13 +29,11 @@ public:
|
||||
{ "activelist", SEC_GAMEMASTER, true, &HandleEventActiveListCommand, "" },
|
||||
{ "start", SEC_GAMEMASTER, true, &HandleEventStartCommand, "" },
|
||||
{ "stop", SEC_GAMEMASTER, true, &HandleEventStopCommand, "" },
|
||||
{ "", SEC_GAMEMASTER, true, &HandleEventInfoCommand, "" },
|
||||
{ NULL, 0, false, NULL, "" }
|
||||
{ "", SEC_GAMEMASTER, true, &HandleEventInfoCommand, "" }
|
||||
};
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
{
|
||||
{ "event", SEC_GAMEMASTER, false, NULL, "", eventCommandTable },
|
||||
{ NULL, 0, false, NULL, "" }
|
||||
{ "event", SEC_GAMEMASTER, false, nullptr, "", eventCommandTable }
|
||||
};
|
||||
return commandTable;
|
||||
}
|
||||
@@ -106,8 +104,8 @@ public:
|
||||
std::string endTimeStr = TimeToTimestampStr(eventData.end);
|
||||
|
||||
uint32 delay = sGameEventMgr->NextCheck(eventId);
|
||||
time_t nextTime = time(NULL) + delay;
|
||||
std::string nextStr = nextTime >= eventData.start && nextTime < eventData.end ? TimeToTimestampStr(time(NULL) + delay) : "-";
|
||||
time_t nextTime = time(nullptr) + delay;
|
||||
std::string nextStr = nextTime >= eventData.start && nextTime < eventData.end ? TimeToTimestampStr(time(nullptr) + delay) : "-";
|
||||
|
||||
std::string occurenceStr = secsToTimeString(eventData.occurence * MINUTE, true);
|
||||
std::string lengthStr = secsToTimeString(eventData.length * MINUTE, true);
|
||||
|
||||
Reference in New Issue
Block a user