protected String fixChannelColors(final int channelCode, final String message)
	{
		
		final Session session = mySession;
		if((session != null)
		&& ((128+channelCode) >= 0)
		&& ((128+channelCode) < session.getColorCodes().length)
		&& (session.getColorCodes()[128 + channelCode]!=null))
			return CMStrings.replaceAll(message, ColorLibrary.SpecialColor.CHANNEL.getEscapeCode(), mySession.getColorCodes()[128 + channelCode]);
		else
		{
			final CMChannel chan = CMLib.channels().getChannel(channelCode);
			if((chan.colorOverrideANSICodes()!=null)&&(chan.colorOverrideANSICodes().length()>0))
				return CMStrings.replaceAll(message, ColorLibrary.SpecialColor.CHANNEL.getEscapeCode(), chan.colorOverrideANSICodes());
		}
		return message;
	}