public void sendMessage(String input) {
		if (input == null || input.isEmpty()) {
			return;
		}
		synchronized (server.writer) {
			System.out.println(server.socket.isClosed());
			try {
				if (input.startsWith("/")) {
					if (input.equals("/list")) {
						String s = ":tmi.twitch.tv NAMES " + channel;
						server.writer.write(s);
						System.out.println(s);
						server.writer.newLine();
					}
				} else {
					server.writer.write("PRIVMSG " + channel + " :"
							+ input);
					server.writer.newLine();
				}
				server.writer.flush();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		addMessage(User.getUser(IRCClient.server.settings.nick, channel), input, false);
	}