[Commands] Cleanup #cvs Command. (#1709)

* [Commands] Cleanup #cvs Command.
- Cleanup message and display.
- Add Total Clients to message.
- Add Unique IPs to message.

* Formatting.

* Formatting.
This commit is contained in:
Kinglykrab
2021-11-11 16:48:50 -05:00
committed by GitHub
parent 994ef712b2
commit fa07064466
2 changed files with 58 additions and 68 deletions
+8 -14
View File
@@ -13778,20 +13778,14 @@ void command_door(Client *c, const Seperator *sep) {
void command_cvs(Client *c, const Seperator *sep)
{
if(c)
{
auto pack =
new ServerPacket(ServerOP_ClientVersionSummary, sizeof(ServerRequestClientVersionSummary_Struct));
ServerRequestClientVersionSummary_Struct *srcvss = (ServerRequestClientVersionSummary_Struct*)pack->pBuffer;
strn0cpy(srcvss->Name, c->GetName(), sizeof(srcvss->Name));
worldserver.SendPacket(pack);
safe_delete(pack);
}
auto pack = new ServerPacket(
ServerOP_ClientVersionSummary,
sizeof(ServerRequestClientVersionSummary_Struct)
);
auto srcvss = (ServerRequestClientVersionSummary_Struct*)pack->pBuffer;
strn0cpy(srcvss->Name, c->GetName(), sizeof(srcvss->Name));
worldserver.SendPacket(pack);
safe_delete(pack);
}
void command_max_all_skills(Client *c, const Seperator *sep)