I really got annoyed by [RECIPIENT]

This commit is contained in:
Siana Gearz
2011-04-03 00:46:34 +02:00
parent 6dd9212d16
commit 7e895d4590

View File

@@ -75,6 +75,8 @@
#include "llmutelist.h"
#include "llstylemap.h"
#include "boost/algorithm/string.hpp"
// [RLVa:KB]
#include "rlvhandler.h"
// [/RLVa:KB]
@@ -2499,11 +2501,13 @@ void LLFloaterIMPanel::showSessionEventError(
const std::string& error_string)
{
LLSD args;
args["REASON"] =
LLFloaterIM::sErrorStringsMap[error_string];
args["EVENT"] =
LLFloaterIM::sEventStringsMap[event_string];
args["RECIPIENT"] = getTitle();
std::string recipient = getTitle();
std::string reason = LLFloaterIM::sErrorStringsMap[error_string];
boost::replace_all(reason, "[RECIPIENT]", recipient);
std::string event = LLFloaterIM::sEventStringsMap[event_string];
boost::replace_all(event, "[RECIPIENT]", recipient);
args["REASON"] = reason;
args["EVENT"] = event;
LLNotifications::instance().add(
"ChatterBoxSessionEventError",