Jelajahi Sumber

BETA: Exploit fix for removing party from channel that's not in yours! (thanks Nik and JIV)

Rumen Nikiforov 14 tahun lalu
induk
melakukan
43bc185469

+ 2 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/network/clientpackets/RequestExOustFromMPCC.java

@@ -48,7 +48,8 @@ public final class RequestExOustFromMPCC extends L2GameClientPacket
 		
 		if (target != null && target.isInParty() && activeChar.isInParty() && activeChar.getParty().isInCommandChannel()
 				&& target.getParty().isInCommandChannel()
-				&& activeChar.getParty().getCommandChannel().getChannelLeader().equals(activeChar))
+				&& activeChar.getParty().getCommandChannel().getChannelLeader().equals(activeChar)
+				&& activeChar.getParty().getCommandChannel().equals(target.getParty().getCommandChannel()))
 		{
 			if (activeChar.equals(target))
 				return;