mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* [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
15 lines
439 B
C++
Executable File
15 lines
439 B
C++
Executable File
#include "../client.h"
|
|
#include "../worldserver.h"
|
|
|
|
extern WorldServer worldserver;
|
|
|
|
void command_cvs(Client *c, const Seperator *sep)
|
|
{
|
|
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);
|
|
}
|
|
|