コード例 #1
0
        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);
            }
        }
コード例 #2
0
        /// <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>");
            }
        }