mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[Commands] Cleanup #zsave Command. (#1807)
* [Commands] Cleanup #zsave Command. - Cleanup message and logic. * White.
This commit is contained in:
parent
26c7287997
commit
0da4610249
@ -2,11 +2,15 @@
|
|||||||
|
|
||||||
void command_zsave(Client *c, const Seperator *sep)
|
void command_zsave(Client *c, const Seperator *sep)
|
||||||
{
|
{
|
||||||
if (zone->SaveZoneCFG()) {
|
c->Message(
|
||||||
c->Message(Chat::Red, "Zone header saved successfully.");
|
Chat::White,
|
||||||
}
|
fmt::format(
|
||||||
else {
|
"Zone header {}.",
|
||||||
c->Message(Chat::Red, "ERROR: Zone header data was NOT saved.");
|
(
|
||||||
}
|
zone->SaveZoneCFG() ?
|
||||||
|
"saved successfully" :
|
||||||
|
"failed to save"
|
||||||
|
)
|
||||||
|
).c_str()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user