public void leaveChannel(Channel channel) {
		synchronized (channels) {
			channels.remove(channel);

			if (channels.isEmpty()) { // logged out
				saveStats();
				Server.get().removeClient(name);
				sendHello();
			}
		}
	}