public Channel join(String channel) {
		if (socket == null) {
			return null;
		}
		try {
			writer.write("JOIN " + channel);
			writer.newLine();
			writer.flush();
		} catch (IOException e) {
			e.printStackTrace();
		}
		Channel c = new Channel(this, channel);
		synchronized (channels) {
			channels.add(c);
		}
		return c;
	}