public static String addUser(Channel channel, Client client, boolean self) {
		PacketBuilder buffer = new PacketBuilder(SendOpcode.ADD_USER.getValue());

		buffer.writeByte(0x00);
		buffer.writeString(channel.getName());
		buffer.writeByte(0x00);
		buffer.writeString(client.getName());
		buffer.writeByte(0x00);
		buffer.writeByte(self ? 'b' : 'p'); // font weight
		buffer.writeByte(0x00);
		buffer.writeString(channel.getStyle().getRankColor(client));

		for (Pair<String, Integer> icon : client.getIcons()) {
			buffer.writeByte(0x00);
			buffer.writeString(icon.getLeft());
			buffer.writeByte(0x00);
			buffer.writeString(String.valueOf(icon.getRight()));
		}

		buffer.writeByte(0x00);
		buffer.writeString("-"); // login message

		return buffer.toString();
	}