@Override
	protected void onPrivateMessage(String sender, String login, String hostname, String message)
	{
		super.onPrivateMessage(sender, login, hostname, message);
		int targettab = 0;
		int i = 0;
		while(true)
		{
			try
			{
				if(Main.gui.tabs.get(i).title.equalsIgnoreCase(sender) || Main.gui.tabs.get(i).title.substring(1).equalsIgnoreCase(sender))
				{
					//TODO Fix Bug Here
					//     If someone sends us a PM, we open a new window,
					//     but if they're chat window was already closed
					//     before, a new one doesn't open for whatever reason.
					
					//     UPDATE: Maybe this is fixed? Please check.
					
					if(!Main.gui.tabs.get(i).closed)
					{
						targettab = i;
						break;
					}
					else
					{
						throw new Exception("Create new PM window.");
					}
				}
				else
				{
					i++;
				}
			}
			catch(Exception e)
			{
				int newtab = Main.gui.addTab(new Tab(sender, false, 2));
				Main.gui.tabs.get(newtab).server = serverip;
				Main.gui.tabs.get(newtab).serverid = serverid;
				Main.gui.tabs.get(newtab).addMessage("Chatting with " + sender + "...");
				targettab = newtab;
				break;
			}
		}
		Main.gui.tabs.get(targettab).addMessage(sender, message);
	}