aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llimpanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llimpanel.cpp')
-rw-r--r--linden/indra/newview/llimpanel.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp
index d8683ab..5e260ec 100644
--- a/linden/indra/newview/llimpanel.cpp
+++ b/linden/indra/newview/llimpanel.cpp
@@ -2181,7 +2181,7 @@ void LLFloaterIMPanel::removeTypingIndicator(const LLIMInfo* im_info)
2181void LLFloaterIMPanel::chatFromLogFile(LLLogChat::ELogLineType type, std::string line, void* userdata) 2181void LLFloaterIMPanel::chatFromLogFile(LLLogChat::ELogLineType type, std::string line, void* userdata)
2182{ 2182{
2183 LLFloaterIMPanel* self = (LLFloaterIMPanel*)userdata; 2183 LLFloaterIMPanel* self = (LLFloaterIMPanel*)userdata;
2184 LLUIString message = line; 2184 std::string message = line;
2185 2185
2186 switch (type) 2186 switch (type)
2187 { 2187 {
@@ -2189,14 +2189,14 @@ void LLFloaterIMPanel::chatFromLogFile(LLLogChat::ELogLineType type, std::string
2189 // add warning log enabled message 2189 // add warning log enabled message
2190 if (gSavedPerAccountSettings.getBOOL("LogInstantMessages")) 2190 if (gSavedPerAccountSettings.getBOOL("LogInstantMessages"))
2191 { 2191 {
2192 message = LLFloaterChat::getInstance()->getUIString("IM_logging_string"); 2192 message = LLFloaterChat::getInstance()->getString("IM_logging_string");
2193 } 2193 }
2194 break; 2194 break;
2195 case LLLogChat::LOG_END: 2195 case LLLogChat::LOG_END:
2196 // add log end message 2196 // add log end message
2197 if (gSavedPerAccountSettings.getBOOL("LogInstantMessages")) 2197 if (gSavedPerAccountSettings.getBOOL("LogInstantMessages"))
2198 { 2198 {
2199 message = LLFloaterChat::getInstance()->getUIString("IM_logging_string"); 2199 message = LLFloaterChat::getInstance()->getString("IM_logging_string");
2200 } 2200 }
2201 break; 2201 break;
2202 case LLLogChat::LOG_LINE: 2202 case LLLogChat::LOG_LINE:
@@ -2241,11 +2241,16 @@ void LLFloaterIMPanel::showSessionEventError(
2241 const std::string& error_string) 2241 const std::string& error_string)
2242{ 2242{
2243 LLStringUtil::format_map_t args; 2243 LLStringUtil::format_map_t args;
2244 args["[REASON]"] = 2244 std::string event;
2245 LLFloaterIM::sErrorStringsMap[error_string]; 2245
2246 args["[EVENT]"] = 2246 event = LLFloaterIM::sEventStringsMap[event_string];
2247 LLFloaterIM::sEventStringsMap[event_string];
2248 args["[RECIPIENT]"] = getTitle(); 2247 args["[RECIPIENT]"] = getTitle();
2248 LLStringUtil::format(event, args);
2249
2250
2251 args = LLStringUtil::format_map_t();
2252 args["[REASON]"] = LLFloaterIM::sErrorStringsMap[error_string];
2253 args["[EVENT]"] = event;
2249 2254
2250 gViewerWindow->alertXml( 2255 gViewerWindow->alertXml(
2251 "ChatterBoxSessionEventError", 2256 "ChatterBoxSessionEventError",