mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
Filter out expired instances from #dz list
Add 'all' argument to #dz list to optionally show expired instances
This commit is contained in:
parent
ef77b28b3f
commit
a9c65cd4b2
@ -6900,6 +6900,8 @@ void command_dz(Client* c, const Seperator* sep)
|
||||
auto expire_time = std::chrono::system_clock::from_time_t(start_time + duration);
|
||||
bool is_expired = std::chrono::system_clock::now() > expire_time;
|
||||
|
||||
if (!is_expired || strcasecmp(sep->arg[2], "all") == 0)
|
||||
{
|
||||
c->Message(Chat::White, fmt::format(
|
||||
"type: [{}] instance: [{}] zone: [{}] version: [{}] members: [{}] expired: [{}]",
|
||||
strtoul(row[0], nullptr, 10),
|
||||
@ -6912,6 +6914,7 @@ void command_dz(Client* c, const Seperator* sep)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (strcasecmp(sep->arg[1], "lockouts") == 0)
|
||||
{
|
||||
if (strcasecmp(sep->arg[2], "remove") == 0 && sep->arg[3][0] != '\0')
|
||||
@ -6929,7 +6932,7 @@ void command_dz(Client* c, const Seperator* sep)
|
||||
c->Message(Chat::White, "#dz cache list - list expeditions in current zone cache");
|
||||
c->Message(Chat::White, "#dz cache reload - reload zone cache from database");
|
||||
c->Message(Chat::White, "#dz destroy <expedition_id> - destroy expedition globally (must be in cache)");
|
||||
c->Message(Chat::White, "#dz list - list all dynamic zones with corresponding instance ids from database");
|
||||
c->Message(Chat::White, "#dz list [all] - list dynamic zones from database -- 'all' includes expired");
|
||||
c->Message(Chat::White, "#dz lockouts remove <char_name> - delete all of character's expedition lockouts");
|
||||
c->Message(Chat::White, "#dz lockouts remove <char_name> \"<expedition_name>\" - delete lockouts by expedition");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user