mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
25 lines
498 B
C++
25 lines
498 B
C++
#include "../worlddb.h"
|
|
|
|
void WorldserverCLI::DatabaseSetAccountStatus(int argc, char **argv, argh::parser &cmd, std::string &description)
|
|
{
|
|
description = "Sets account status by account name";
|
|
|
|
std::vector<std::string> arguments = {
|
|
"{name}",
|
|
"{status}"
|
|
};
|
|
|
|
std::vector<std::string> options = {};
|
|
|
|
if (cmd[{"-h", "--help"}]) {
|
|
return;
|
|
}
|
|
|
|
EQEmuCommand::ValidateCmdInput(arguments, options, cmd, argc, argv);
|
|
|
|
database.SetAccountStatus(
|
|
cmd(2).str(),
|
|
std::stoi(cmd(3).str())
|
|
);
|
|
}
|