diff --git a/src/irc.cpp b/src/irc.cpp index ac0ce17a..c52cb87d 100644 --- a/src/irc.cpp +++ b/src/irc.cpp @@ -251,9 +251,11 @@ static HookedFunction paint(HookedFunctions_types::HF_Paint, "IRC", 16, []() { lowest = steamidvec[i]; idx = i; } - if (idx != -1) - hack::command_stack().push( - format("tf_party_request_join_user ", steamidvec[idx])); + if (idx != -1 && steamidvec[idx] != g_ISteamUser->GetSteamID().GetAccountID()) + { + hack::command_stack().push("tf_party_leave"); + hack::command_stack().push(format("tf_party_request_join_user ", steamidvec[idx])); + } steamidvec.clear(); } }