private String set_nick(String newnick) {
		newnick = restrict(newnick);

		if (newnick.equals(ms.admin_name)) {
			cliprint_h(VT100.crlf + "You cannot open connection as Administrator");
			return null;
		}

		if (newnick.length() > 16) newnick = newnick.substring(0, 16);
		if (newnick.length() < 1) {
			newnick = nr + "";
			if (ms.jokes) cliprint(VT100.crlf + "Length of you nickname is 0. Are you somewhat type-lazy?");
		}

		synchronized(cliinfo) {
			for (Enumeration e = cliinfo.elements(); e.hasMoreElements();) {
				cli_info n = (cli_info) e.nextElement();
				if (n.nickname.equals(newnick)) {
					return null; // Nickname exists; Stop it
				}
			}
			client.nickname = newnick;
			cliinfo.add(client); // Add the name to the list
		}

		return newnick;
	}