From 725293f117cc919a60dd3722aacdfda67f925388 Mon Sep 17 00:00:00 2001 From: LightCat Date: Mon, 8 Oct 2018 19:40:54 +0200 Subject: [PATCH] more stuffs --- src/irc.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); } }