Disallow the user from self-muting and remove them from the mutelist if this was the case.

Works around other viewers allowing the user to mute themself.
This commit is contained in:
Lirusaito
2012-07-11 10:47:40 -04:00
parent 6fa0b668ba
commit 0f8fbcfcc1

View File

@@ -688,6 +688,12 @@ BOOL LLMuteList::isMuted(const LLUUID& id, const std::string& name, U32 flags) c
// don't need name or type for lookup
LLMute mute(id_to_check);
// Can't mute self.
if (mute.mID == gAgent.getID() && !mute_object)
{
getInstance()->remove(mute);
return false;
}
mute_set_t::const_iterator mute_it = mMutes.find(mute);
if (mute_it != mMutes.end())
{