private synchronized void log_line(String user, String line) {
		if (ms.logusrs == null && logfd != null) return;
		for (int i = 0; i < ms.logusrs.length; i++) {
			if (ms.logusrs[i].equals(user)) {
				try {
					logfd.write((VT100.strip_all(line) + "\n").getBytes());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			if (ms.logusrs[i].equals("*")) {
				try {
					logfd.write((VT100.strip_all(line) + "\n").getBytes());
				} catch (IOException e) {
					e.printStackTrace();
				}
				return;
			}
		}
	}