public bool addUser(vUser u) { vUserList.Add(u); vConsoleDebug.debugMessage("user " + u.ToString() + " added"); return true; }
public bool addUser(string l, string p) { vUser u = new vUser(l, p); vUserList.Add(u); vConsoleDebug.debugMessage("user " + u.ToString() + " added"); return true; }
public static bool addUser() { Regex re = new Regex("addu (?<login>.*?)@(?<password>.*)"); Match match; GroupCollection gc; match = re.Match(vConsole.vLastCommand); if (match.Success) { gc = match.Groups; vUser u = new vUser(gc["login"].Value, gc["password"].Value); vServer.vUserList.Add(u); vConsoleDebug.debugMessage("user " + u.ToString() + " added"); return true; } return false; }