This commit is contained in:
LightCat 2018-10-08 18:52:49 +02:00
parent 52c35ad2ff
commit 3f6ef85026

View File

@ -238,7 +238,7 @@ static bool restarting{ false };
static HookedFunction paint(HookedFunctions_types::HF_Paint, "IRC", 16, []() { static HookedFunction paint(HookedFunctions_types::HF_Paint, "IRC", 16, []() {
if (!restarting) if (!restarting)
{ {
if (!last_steamid_received.test_and_set(10000)) if (last_steamid_received.test_and_set(10000))
{ {
if (!steamidvec.empty()) if (!steamidvec.empty())
{ {
@ -254,6 +254,7 @@ static HookedFunction paint(HookedFunctions_types::HF_Paint, "IRC", 16, []() {
if (idx != -1) if (idx != -1)
hack::command_stack().push( hack::command_stack().push(
format("tf_party_request_join_user ", steamidvec[idx])); format("tf_party_request_join_user ", steamidvec[idx]));
steamidvec.empty();
} }
} }
if (irc_party && last_sent_steamid.test_and_set(*party_cooldown * 1000)) if (irc_party && last_sent_steamid.test_and_set(*party_cooldown * 1000))