static final void method2165(boolean bool, String string) {
	anInt6287++;
	if (string != null) {
	    if (string.startsWith("*"))
		string = string.substring(1);
	    String string_0_ = Class285_Sub1.unformatUsername(string);
	    if (string_0_ != null) {
		for (int i = 0;
		     ((i ^ 0xffffffff)
		      > (Class348_Sub40_Sub30.friendListLength ^ 0xffffffff));
		     i++) {
		    String string_1_ = Class83.friendListUsernames[i];
		    if (string_1_.startsWith("*"))
			string_1_ = string_1_.substring(1);
		    string_1_ = Class285_Sub1.unformatUsername(string_1_);
		    if (string_1_ != null && string_1_.equals(string_0_)) {
			Class348_Sub40_Sub30.friendListLength--;
			for (int i_2_ = i;
			     i_2_ < Class348_Sub40_Sub30.friendListLength; i_2_++) {
			    Class83.friendListUsernames[i_2_]
				= Class83.friendListUsernames[i_2_ - -1];
			    Class286_Sub2.friendListGamenames[i_2_]
				= Class286_Sub2.friendListGamenames[1 + i_2_];
			    AbstractToolkit.anIntArray4578[i_2_]
				= AbstractToolkit.anIntArray4578[i_2_ - -1];
			    Class285.clanChatWorld[i_2_]
				= Class285.clanChatWorld[1 + i_2_];
			    Class172.clanChatRanking[i_2_]
				= Class172.clanChatRanking[i_2_ - -1];
			    Class122.aBooleanArray1806[i_2_]
				= Class122.aBooleanArray1806[1 + i_2_];
			}
			Class126.anInt4985 = LoadingHandler.anInt3918;
			Class348_Sub42_Sub7.anInt9540++;
			BufferedPacket class348_sub47
			    = Class286_Sub3.createBufferedPacket(Class357.aClass351_4394,
						       (Class348_Sub23_Sub2
							.outgoingGameIsaac));
			((BufferedPacket) class348_sub47)
			    .buffer.putByte
			    (Class239_Sub6.getStringLength(string, -65));
			((BufferedPacket) class348_sub47)
			    .buffer
			    .putJStr((byte) -5, string);
			Class348_Sub42_Sub14.queuePacket(117, class348_sub47);
			break;
		    }
		}
		if (bool != true)
		    aBoolean6289 = true;
	    }
	}
    }