Alex King 692a90f3f0
[Commands] Add #show aas Command (#3710)
# Notes
- Allows operators to view AAs a player has purchased from ingame and their ranks.
2023-11-26 00:27:02 -05:00

14 lines
321 B
C++

#include "../../client.h"
void ShowAAs(Client *c, const Seperator *sep)
{
Client *t = c;
if (c->GetTarget() && c->GetTarget()->IsClient()) {
t = c->GetTarget()->CastToClient();
}
const std::string& search_criteria = sep->argnum >= 2 ? sep->argplus[2] : std::string();
t->ListPurchasedAAs(c, search_criteria);
}