more stuffs

This commit is contained in:
LightCat 2018-10-08 19:40:54 +02:00
parent 8611e11e33
commit 725293f117

View File

@ -251,9 +251,11 @@ static HookedFunction paint(HookedFunctions_types::HF_Paint, "IRC", 16, []() {
lowest = steamidvec[i]; lowest = steamidvec[i];
idx = i; idx = i;
} }
if (idx != -1) if (idx != -1 && steamidvec[idx] != g_ISteamUser->GetSteamID().GetAccountID())
hack::command_stack().push( {
format("tf_party_request_join_user ", steamidvec[idx])); hack::command_stack().push("tf_party_leave");
hack::command_stack().push(format("tf_party_request_join_user ", steamidvec[idx]));
}
steamidvec.clear(); steamidvec.clear();
} }
} }