Squeak
Links for teleport offers, show autoresponded with item to muted in local, autounmute notification (so you can remute easily :P). Cleanup redundant strings
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
#include "llxfermanager.h"
|
||||
|
||||
#include "llagent.h"
|
||||
#include "llavataractions.h"
|
||||
#include "llviewergenericmessage.h" // for gGenericDispatcher
|
||||
#include "llworld.h" //for particle system banning
|
||||
#include "llfloaterchat.h"
|
||||
@@ -458,7 +459,7 @@ void LLMuteList::updateRemove(const LLMute& mute)
|
||||
gAgent.sendReliableMessage();
|
||||
}
|
||||
|
||||
void notify_automute_callback(const LLUUID& agent_id, const std::string& full_name, bool is_group, LLMuteList::EAutoReason reason)
|
||||
static void notify_automute_callback(const LLUUID& agent_id, const LLMuteList::EAutoReason& reason)
|
||||
{
|
||||
std::string notif_name;
|
||||
switch (reason)
|
||||
@@ -475,11 +476,7 @@ void notify_automute_callback(const LLUUID& agent_id, const std::string& full_na
|
||||
break;
|
||||
}
|
||||
|
||||
LLSD args;
|
||||
args["NAME"] = full_name;
|
||||
|
||||
LLNotificationPtr notif_ptr = LLNotifications::instance().add(notif_name, args, LLSD());
|
||||
if (notif_ptr)
|
||||
if (auto notif_ptr = LLNotifications::instance().add(notif_name, LLSD().with("NAME", LLAvatarActions::getSLURL(agent_id)), LLSD()))
|
||||
{
|
||||
std::string message = notif_ptr->getMessage();
|
||||
|
||||
@@ -506,18 +503,7 @@ BOOL LLMuteList::autoRemove(const LLUUID& agent_id, const EAutoReason reason)
|
||||
removed = TRUE;
|
||||
remove(automute);
|
||||
|
||||
std::string full_name;
|
||||
if (gCacheName->getFullName(agent_id, full_name))
|
||||
{
|
||||
// name in cache, call callback directly
|
||||
notify_automute_callback(agent_id, full_name, false, reason);
|
||||
}
|
||||
else
|
||||
{
|
||||
// not in cache, lookup name from cache
|
||||
gCacheName->get(agent_id, false,
|
||||
boost::bind(¬ify_automute_callback, _1, _2, _3, reason));
|
||||
}
|
||||
notify_automute_callback(agent_id, reason);
|
||||
}
|
||||
|
||||
return removed;
|
||||
|
||||
Reference in New Issue
Block a user