From 70dcc2b02feaba7ec2cbf6e43e467e751b561098 Mon Sep 17 00:00:00 2001 From: 0x05010705 <0x05010705@protonmail.ch> Date: Sat, 15 Mar 2025 16:09:31 -0700 Subject: [PATCH] [core] Block Invites from Blacklist Prevents invites from being going through if target of invite has initiator blacklisted. --- src/map/packet_system.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/map/packet_system.cpp b/src/map/packet_system.cpp index 0df90f0a443..00fac8db1c0 100644 --- a/src/map/packet_system.cpp +++ b/src/map/packet_system.cpp @@ -3247,6 +3247,12 @@ void SmallPacket0x06E(map_session_data_t* const PSession, CCharEntity* const PCh return; } + // Block invite if target has blacklisted the initiator + if (blacklistutils::IsBlacklisted(inviteeCharId, PInviter->id)) + { + return; + } + switch (data.ref(0x0A)) { case INVITE_PARTY: // party - must by party leader or solo