public void RemoveAgent(UUID uuid)
        {
            string name = Agent.Name(uuid);
            Agent  user = Get(name);

            if (user != null)
            {
                m_log.InfoFormat("[MurmurVoice] Removing registered user {0}", user.name);
                m_server.unregisterUser(user.userid);
                lock (name_to_agent)
                    name_to_agent.Remove(user.name);
            }
        }
        /// <summary>
        /// Remove user registration
        /// </summary>
        /// <param name="userId"></param>
        public void UnregisterUser(int userId)
        {
            _server.unregisterUser(userId);

            // remove from cache
            if (_entity.Users.ContainsKey(userId))
            {
                _entity.Users.Remove(userId);
            }
        }
示例#3
0
        private void UnregisterUser(string module, string[] args)
        {
            if (args.Length == 3)
            {
                int userid = Convert.ToInt32(args[2]);

                m_server.unregisterUser(userid);
            }
            else
            {
                m_log.Info("[MurmurVoice]: Usage: mumble unregister <userid>");
            }
        }