@Override
	protected void onMessage(String channel, String sender, String login, String hostname, String message)
	{
		super.onMessage(channel, sender, login, hostname, message);
		if(channel == null)
		{
			Main.gui.tabs.get(servertab).addMessage(sender, message);
		}
		else
		{
			int targettab = 0;
			int i = 0;
			while(true)
			{
				try
				{
					if(Main.gui.tabs.get(i).title.equalsIgnoreCase(channel) || Main.gui.tabs.get(i).title.substring(1).equalsIgnoreCase(channel))
					{
						targettab = i;
						break;
					}
					else
					{
						i++;
					}
				}
				catch(Exception e)
				{
					break;
				}
			}
			Main.gui.tabs.get(targettab).addMessage(sender, message);
		}
	}