Kinglykrab e62a283a79
[Commands] Cleanup #makepet Command. (#2105)
- Cleanup messages and logic.
2022-05-06 20:58:07 -04:00

20 lines
370 B
C++
Executable File

#include "../client.h"
void command_makepet(Client *c, const Seperator *sep)
{
int arguments = sep->argnum;
if (!arguments) {
c->Message(Chat::White, "Usage: #makepet [Pet Name]");
return;
}
std::string pet_name = sep->arg[1];
if (pet_name.empty()) {
c->Message(Chat::White, "Usage: #makepet [Pet Name]");
return;
}
c->MakePet(0, pet_name.c_str());
}