public void receiveMessage(String message, Client client)
	{
		if (running == false)
			return;

		if (message.startsWith("CON:"))
		{
			String name = message.substring(4);
			for (Client c : clients)
			{
				if (c.getName().equals(name))
				{
					client.send("NCN:", sender);
					return;
				}
			}
			client.setName(message.substring(4));
			System.out.println(client.getName() + " connected.");
			broadcast(message);
		}
		else if (message.startsWith("MSG:"))
		{
			System.out.println(client.getName() + ": " + message.substring(4));

			/* Send the message to all of the clients. */
			broadcast("MSG:" + client.getName() + ":" + message.substring(4));
		}
		else if (message.startsWith("DIS:"))
		{
			System.out.println(client.getName() + " disconnected.");
			clients.remove(client);
			client.stop();
			broadcast("DIS:"+client.getName());
		}
		else if (message.startsWith("RUL:"))
		{
			client.send("CUL:"+generateUserList(), sender);
		}
	}