mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
* Input sanitation for #zone * Update zone.cpp * Update clientlist.cpp * Test * Test * Remove logging, revert /who all code * Remove log * Update clientlist.cpp
22 lines
411 B
C++
22 lines
411 B
C++
#include "../../common/zone_store.h"
|
|
|
|
void WorldserverCLI::TestCommand(int argc, char **argv, argh::parser &cmd, std::string &description)
|
|
{
|
|
description = "Test command";
|
|
|
|
if (cmd[{"-h", "--help"}]) {
|
|
return;
|
|
}
|
|
|
|
zone_store.LoadZones(database);
|
|
|
|
const char* zonename = ZoneName(0);
|
|
if (zonename == 0) {
|
|
LogInfo("Zone name is 0");
|
|
}
|
|
if (zonename == nullptr) {
|
|
LogInfo("Zone name is nullptr");
|
|
}
|
|
|
|
}
|