diff options
| author | Jonathan Yap <none@none> | 2011-04-15 13:13:15 -0400 | 
|---|---|---|
| committer | Jonathan Yap <none@none> | 2011-04-15 13:13:15 -0400 | 
| commit | 04f79f63589ab35b01ec9e3d8128e68a201ff332 (patch) | |
| tree | c0f23796a3ca84964105a6c0fc7d040aa16438aa | |
| parent | 547b40bfc8b0139789a2d9c5dcd1591343a2c60b (diff) | |
STORM-956 Ability to mute dialogs by muting object (or object owner)
| -rw-r--r-- | doc/contributions.txt | 2 | ||||
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 5 | ||||
| -rw-r--r-- | scripts/messages/message_template.msg | 8 | 
3 files changed, 13 insertions, 2 deletions
| diff --git a/doc/contributions.txt b/doc/contributions.txt index 516760aa5a..51235e0ce5 100644 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -398,6 +398,7 @@ Jonathan Yap  	STORM-643  	STORM-960  	STORM-953 +	STORM-956  Kage Pixel  	VWR-11  Ken March @@ -762,6 +763,7 @@ Thickbrick Sleaford  	VWR-13483  	VWR-13947  	VWR-24420 +	STORM-956  Thraxis Epsilon  	SVC-371  	VWR-383 diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 103989ee80..0da60ed4ab 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -6462,9 +6462,12 @@ void process_script_dialog(LLMessageSystem* msg, void**)  	LLSD payload;  	LLUUID object_id; +    LLUUID owner_id; +  	msg->getUUID("Data", "ObjectID", object_id); +    msg->getUUID("OwnerData", "OwnerID", owner_id); -	if (LLMuteList::getInstance()->isMuted(object_id)) +	if (LLMuteList::getInstance()->isMuted(object_id) || LLMuteList::getInstance()->isMuted(owner_id))  	{  		return;  	} diff --git a/scripts/messages/message_template.msg b/scripts/messages/message_template.msg index 77dc940335..d292653d3f 100644 --- a/scripts/messages/message_template.msg +++ b/scripts/messages/message_template.msg @@ -2966,7 +2966,7 @@ version 2.0  		{	BillableFactor		F32			}  		{	ObjectBonusFactor 	F32			}  		{	WaterHeight			F32			} -		{   TerrainRaiseLimit	F32 		} +		{	TerrainRaiseLimit	F32 		}  		{	TerrainLowerLimit	F32 		}  		{	PricePerMeter 		S32			}  		{	RedirectGridX 		S32			} @@ -4242,6 +4242,10 @@ version 2.0  		Buttons	Variable  		{	ButtonLabel		Variable	1	}  	} +	{ +		OwnerData Variable +		{	OwnerID		LLUUID	} +	}  } @@ -6762,6 +6766,8 @@ version 2.0  }  // And, the money transfer +// *NOTE: Unused as of 2010-04-06, because all back-end money transactions +// are done with web services via L$ API.  JC  {  	MoneyTransferBackend Low 312 Trusted Zerocoded  	{ | 
