Esempio n. 1
0
        public bool addUser(vUser u)
        {
            vUserList.Add(u);
            vConsoleDebug.debugMessage("user " + u.ToString() + " added");

            return true;
        }
Esempio n. 2
0
        public bool addUser(string l, string p)
        {
            vUser u = new vUser(l, p);
            vUserList.Add(u);
            vConsoleDebug.debugMessage("user " + u.ToString() + " added");

            return true;
        }
Esempio n. 3
0
        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;
        }