コード例 #1
0
void exoGroupMuteList::remove(const LLUUID& group)
{
	// <FS:Ansariel> Server-side storage
	//if(mMuted.erase(group))
	//{
	//	saveMuteList();
	//}
	LLMuteList::instance().remove(LLMute(LLUUID::null, getMutelistString(group), LLMute::BY_NAME));
	// </FS:Ansariel> Server-side storage
}
コード例 #2
0
void LLFloaterObjectIMInfo::onClickMute()
{
// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.0g
	if (!mGroupOwned && gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) && RlvUtil::isNearbyAgent(mOwnerID))
		return;
// [/RLVa:KB]

	LLMuteList::instance().add(LLMute(mOwnerID, mName, mGroupOwned ? LLMute::GROUP : LLMute::AGENT));
	LLFloaterMute::showInstance();
	close();
}
コード例 #3
0
void exoGroupMuteList::add(const LLUUID& group)
{
	LLGroupActions::endIM(group); // Actually kill ongoing conversation

	// <FS:Ansariel> Server-side storage
	//if(mMuted.insert(group).second)
	//{
	//	saveMuteList();
	//}
	LLMuteList::instance().add(LLMute(LLUUID::null, getMutelistString(group), LLMute::BY_NAME));
	// </FS:Ansariel> Server-side storage
}
コード例 #4
0
    void onObjectIconContextMenuItemClicked(const LLSD& userdata)
    {
        std::string level = userdata.asString();

        if (level == "profile")
        {
            LLFloaterReg::showInstance("inspect_remote_object", mObjectData);
        }
        else if (level == "block")
        {
            LLMuteList::getInstance()->add(LLMute(getAvatarId(), mFrom, LLMute::OBJECT));

            LLFloaterSidePanelContainer::showPanel("people", "panel_block_list_sidetray", LLSD().with("blocked_to_select", getAvatarId()));
        }
    }
コード例 #5
0
	void onObjectIconContextMenuItemClicked(const LLSD& userdata)
	{
		std::string level = userdata.asString();

		if (level == "profile")
		{
			LLSD params;
			params["object_id"] = getAvatarId();

			LLFloaterReg::showInstance("inspect_object", params);
		}
		else if (level == "block")
		{
			LLMuteList::getInstance()->add(LLMute(getAvatarId(), mFrom, LLMute::OBJECT));

			LLSideTray::getInstance()->showPanel("panel_block_list_sidetray", LLSD().with("blocked_to_select", getAvatarId()));
		}
	}
コード例 #6
0
ファイル: LuaBase_f.cpp プロジェクト: N3X15/Luna-Viewer
/*
2010-01-10T01:04:21Z INFO: add: Muting  id d1360af3-98cc-40fd-aa6f-5e4041025115 flags 0

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x881f3b70 (LWP 10962)]
0x084e28c9 in LLUUID (this=0x881f2920, rhs=...)
    at /root/Luna/trunk/indra/llcommon/lluuid.h:210
*/
bool muteAvatar(const LLUUID& derp)
{
	return LLMuteList::getInstance()->add(LLMute(derp,"",LLMute::AGENT,0))==TRUE;
}