コード例 #1
0
        public bool IsMuted(UUID AgentID, UUID PossibleMuteID)
        {
            List <string> serverURIs =
                m_registry.RequestModuleInterface <IConfigurationService>().FindValueOf(AgentID.ToString(),
                                                                                        "FriendsServerURI");

            if (serverURIs.Count > 0) //Remote user... or should be
            {
                if (!m_remoteService.IsMuted(AgentID, PossibleMuteID))
                {
                    return(false);
                }
                else
                {
                    return(true);
                }
            }
            else if (!m_localService.IsMuted(AgentID, PossibleMuteID))
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
コード例 #2
0
 public bool IsMuted(UUID AgentID, UUID PossibleMuteID)
 {
     if (!m_localService.IsMuted(AgentID, PossibleMuteID))
     {
         if (!m_remoteService.IsMuted(AgentID, PossibleMuteID))
         {
             return(false);
         }
     }
     return(true);
 }