mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
[Commands] Cleanup #version Command. (#1967)
- Utilize popup over chat message.
This commit is contained in:
parent
d83ced6f76
commit
49d7eb1402
@ -2,9 +2,17 @@
|
|||||||
|
|
||||||
void command_version(Client *c, const Seperator *sep)
|
void command_version(Client *c, const Seperator *sep)
|
||||||
{
|
{
|
||||||
c->Message(Chat::White, "Current version information.");
|
std::string popup_text = "<table>";
|
||||||
c->Message(Chat::White, " %s", CURRENT_VERSION);
|
|
||||||
c->Message(Chat::White, " Compiled on: %s at %s", COMPILE_DATE, COMPILE_TIME);
|
popup_text += fmt::format("<tr><td>Version</td><td>{}</td></tr>", CURRENT_VERSION);
|
||||||
c->Message(Chat::White, " Last modified on: %s", LAST_MODIFIED);
|
popup_text += fmt::format("<tr><td>Compiled</td><td>{} {}</td></tr>", COMPILE_DATE, COMPILE_TIME);
|
||||||
|
popup_text += fmt::format("<tr><td>Last Modified</td><td>{}</td></tr>", LAST_MODIFIED);
|
||||||
|
|
||||||
|
popup_text += "</table>";
|
||||||
|
|
||||||
|
c->SendPopupToClient(
|
||||||
|
"Server Version Information",
|
||||||
|
popup_text.c_str()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user