diff options
author | Jacek Antonelli | 2008-09-28 17:21:23 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-28 17:21:46 -0500 |
commit | 31e7c77a411d94bc87f0232588b339149bb29a49 (patch) | |
tree | 49e487700e91713e620e4d33f20b7f7afb5a2fa9 /linden/indra/newview/llimpanel.cpp | |
parent | Second Life viewer sources 1.21.2-RC (diff) | |
download | meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.zip meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.gz meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.bz2 meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.xz |
Second Life viewer sources 1.21.3-RC
Diffstat (limited to 'linden/indra/newview/llimpanel.cpp')
-rw-r--r-- | linden/indra/newview/llimpanel.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp index c2b54f3..a6693a3 100644 --- a/linden/indra/newview/llimpanel.cpp +++ b/linden/indra/newview/llimpanel.cpp | |||
@@ -2172,7 +2172,7 @@ void LLFloaterIMPanel::removeTypingIndicator(const LLIMInfo* im_info) | |||
2172 | void LLFloaterIMPanel::chatFromLogFile(LLLogChat::ELogLineType type, std::string line, void* userdata) | 2172 | void LLFloaterIMPanel::chatFromLogFile(LLLogChat::ELogLineType type, std::string line, void* userdata) |
2173 | { | 2173 | { |
2174 | LLFloaterIMPanel* self = (LLFloaterIMPanel*)userdata; | 2174 | LLFloaterIMPanel* self = (LLFloaterIMPanel*)userdata; |
2175 | LLUIString message = line; | 2175 | std::string message = line; |
2176 | 2176 | ||
2177 | switch (type) | 2177 | switch (type) |
2178 | { | 2178 | { |
@@ -2180,14 +2180,14 @@ void LLFloaterIMPanel::chatFromLogFile(LLLogChat::ELogLineType type, std::string | |||
2180 | // add warning log enabled message | 2180 | // add warning log enabled message |
2181 | if (gSavedPerAccountSettings.getBOOL("LogInstantMessages")) | 2181 | if (gSavedPerAccountSettings.getBOOL("LogInstantMessages")) |
2182 | { | 2182 | { |
2183 | message = LLFloaterChat::getInstance()->getUIString("IM_logging_string"); | 2183 | message = LLFloaterChat::getInstance()->getString("IM_logging_string"); |
2184 | } | 2184 | } |
2185 | break; | 2185 | break; |
2186 | case LLLogChat::LOG_END: | 2186 | case LLLogChat::LOG_END: |
2187 | // add log end message | 2187 | // add log end message |
2188 | if (gSavedPerAccountSettings.getBOOL("LogInstantMessages")) | 2188 | if (gSavedPerAccountSettings.getBOOL("LogInstantMessages")) |
2189 | { | 2189 | { |
2190 | message = LLFloaterChat::getInstance()->getUIString("IM_logging_string"); | 2190 | message = LLFloaterChat::getInstance()->getString("IM_logging_string"); |
2191 | } | 2191 | } |
2192 | break; | 2192 | break; |
2193 | case LLLogChat::LOG_LINE: | 2193 | case LLLogChat::LOG_LINE: |
@@ -2232,11 +2232,16 @@ void LLFloaterIMPanel::showSessionEventError( | |||
2232 | const std::string& error_string) | 2232 | const std::string& error_string) |
2233 | { | 2233 | { |
2234 | LLStringUtil::format_map_t args; | 2234 | LLStringUtil::format_map_t args; |
2235 | args["[REASON]"] = | 2235 | std::string event; |
2236 | LLFloaterIM::sErrorStringsMap[error_string]; | 2236 | |
2237 | args["[EVENT]"] = | 2237 | event = LLFloaterIM::sEventStringsMap[event_string]; |
2238 | LLFloaterIM::sEventStringsMap[event_string]; | ||
2239 | args["[RECIPIENT]"] = getTitle(); | 2238 | args["[RECIPIENT]"] = getTitle(); |
2239 | LLStringUtil::format(event, args); | ||
2240 | |||
2241 | |||
2242 | args = LLStringUtil::format_map_t(); | ||
2243 | args["[REASON]"] = LLFloaterIM::sErrorStringsMap[error_string]; | ||
2244 | args["[EVENT]"] = event; | ||
2240 | 2245 | ||
2241 | gViewerWindow->alertXml( | 2246 | gViewerWindow->alertXml( |
2242 | "ChatterBoxSessionEventError", | 2247 | "ChatterBoxSessionEventError", |