mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Commands] Cleanup #cvs Command. (#2153)
* [Commands] Cleanup #cvs Command. - Cleanup messages and logic. - std::find was using .begin() in both comparisons, so it wasn't working and unique IPS always returned 1. * Update cvs.cpp
This commit is contained in:
@@ -5,10 +5,7 @@ extern WorldServer worldserver;
|
||||
|
||||
void command_cvs(Client *c, const Seperator *sep)
|
||||
{
|
||||
auto pack = new ServerPacket(
|
||||
ServerOP_ClientVersionSummary,
|
||||
sizeof(ServerRequestClientVersionSummary_Struct)
|
||||
);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user