From 157a36323515992bbff25a55a185fcc6cad3bd9b Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 28 Sep 2024 14:35:56 -0400 Subject: [PATCH] Fix Checks --- src/plugins/_core/supportHelper.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx index 77e67ef2..1a77aa99 100644 --- a/src/plugins/_core/supportHelper.tsx +++ b/src/plugins/_core/supportHelper.tsx @@ -181,10 +181,8 @@ export default definePlugin({ if (!SUPPORT_CHANNEL_IDS.includes(channelId)) return; const selfId = UserStore.getCurrentUser()?.id; - if ( - channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport") && !clicked && !isEquicordPluginDev(selfId) || - channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport") && !clicked && !isPluginDev(selfId) - ) { + if (!selfId || isPluginDev(selfId) || isEquicordPluginDev(selfId)) return; + if (channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport") && !clicked) { clicked = true; return Alerts.show({ title: "You are entering the support channel!", @@ -203,8 +201,6 @@ export default definePlugin({ }); } - if (!selfId || isPluginDev(selfId) || isEquicordPluginDev(selfId)) return; - if (!IS_UPDATER_DISABLED) { await checkForUpdatesOnce().catch(() => { });