inline char* Cmd_Argv(int arg)
{
if ((unsigned)arg >= cmd_argc[*cmd_id]) {
return "";
}
return (char*)(cmd_argv[*cmd_id][arg]);
}
bool IsBanned(string xuid)
{
std::ifstream file("xuidbans.txt");
std::string str;
while (std::getline(file, str))
{
if (str.find(xuid) != string::npos)
{
return true;
}
}
return false;
}
void hk_PartyHost_HandleJoinPartyRequest(PartyData_s* party, int localControllerIndex, netadr_t from, msg_t* msg)
{
char ip = ("%i.%i.%i.%i\n", from.ip[0], from.ip[1], from.ip[2], from.ip[3]);
char v1[1024]; // [esp+Ch] [ebp-40Ch] BYREF
if (from.type == NA_IP) {
auto xuid = Cmd_Argv(2);
bool rce = msg->cursize > 55;
std::string xuidstr(xuid);
std::transform(xuidstr.begin(), xuidstr.end(), xuidstr.begin(), ::toupper);
printf("Received Join Party request from IP: %i.%i.%i.%i:%i | XUID: %s\n", from.ip[0], from.ip[1], from.ip[2], from.ip[3], from.port, xuidstr);