diff options
Diffstat (limited to 'linden/indra/newview/llimpanel.cpp')
-rw-r--r-- | linden/indra/newview/llimpanel.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp index 3c89131..b74fff0 100644 --- a/linden/indra/newview/llimpanel.cpp +++ b/linden/indra/newview/llimpanel.cpp | |||
@@ -174,6 +174,8 @@ LLFloaterIMPanel::LLFloaterIMPanel(const std::string& name, | |||
174 | mInputEditor(NULL), | 174 | mInputEditor(NULL), |
175 | mHistoryEditor(NULL), | 175 | mHistoryEditor(NULL), |
176 | mSessionUUID(session_id), | 176 | mSessionUUID(session_id), |
177 | mSessionInitRequested(FALSE), | ||
178 | mSessionInitialized(FALSE), | ||
177 | mOtherParticipantUUID(other_participant_id), | 179 | mOtherParticipantUUID(other_participant_id), |
178 | mDialog(dialog), | 180 | mDialog(dialog), |
179 | mTyping(FALSE), | 181 | mTyping(FALSE), |
@@ -181,9 +183,7 @@ LLFloaterIMPanel::LLFloaterIMPanel(const std::string& name, | |||
181 | mTypingLineStartIndex(0), | 183 | mTypingLineStartIndex(0), |
182 | mSentTypingState(TRUE), | 184 | mSentTypingState(TRUE), |
183 | mFirstKeystrokeTimer(), | 185 | mFirstKeystrokeTimer(), |
184 | mLastKeystrokeTimer(), | 186 | mLastKeystrokeTimer() |
185 | mSessionInitialized(FALSE), | ||
186 | mSessionInitRequested(FALSE) | ||
187 | { | 187 | { |
188 | init(session_label); | 188 | init(session_label); |
189 | } | 189 | } |
@@ -199,6 +199,8 @@ LLFloaterIMPanel::LLFloaterIMPanel(const std::string& name, | |||
199 | mInputEditor(NULL), | 199 | mInputEditor(NULL), |
200 | mHistoryEditor(NULL), | 200 | mHistoryEditor(NULL), |
201 | mSessionUUID(session_id), | 201 | mSessionUUID(session_id), |
202 | mSessionInitRequested(FALSE), | ||
203 | mSessionInitialized(FALSE), | ||
202 | mOtherParticipantUUID(other_participant_id), | 204 | mOtherParticipantUUID(other_participant_id), |
203 | mDialog(dialog), | 205 | mDialog(dialog), |
204 | mTyping(FALSE), | 206 | mTyping(FALSE), |
@@ -206,9 +208,7 @@ LLFloaterIMPanel::LLFloaterIMPanel(const std::string& name, | |||
206 | mTypingLineStartIndex(0), | 208 | mTypingLineStartIndex(0), |
207 | mSentTypingState(TRUE), | 209 | mSentTypingState(TRUE), |
208 | mFirstKeystrokeTimer(), | 210 | mFirstKeystrokeTimer(), |
209 | mLastKeystrokeTimer(), | 211 | mLastKeystrokeTimer() |
210 | mSessionInitialized(FALSE), | ||
211 | mSessionInitRequested(FALSE) | ||
212 | { | 212 | { |
213 | mSessionInitialTargetIDs = ids; | 213 | mSessionInitialTargetIDs = ids; |
214 | init(session_label); | 214 | init(session_label); |
@@ -427,7 +427,11 @@ void LLFloaterIMPanel::addHistoryLine(const std::string &utf8msg, const LLColor4 | |||
427 | if (log_to_file | 427 | if (log_to_file |
428 | && gSavedPerAccountSettings.getBOOL("LogInstantMessages") ) | 428 | && gSavedPerAccountSettings.getBOOL("LogInstantMessages") ) |
429 | { | 429 | { |
430 | LLString histstr = timestring + utf8msg; | 430 | LLString histstr; |
431 | if (gSavedPerAccountSettings.getBOOL("IMLogTimestamp")) | ||
432 | histstr = LLLogChat::timestamp(gSavedPerAccountSettings.getBOOL("LogTimestampDate")) + utf8msg; | ||
433 | else | ||
434 | histstr = utf8msg; | ||
431 | 435 | ||
432 | LLLogChat::saveHistory(getTitle(),histstr); | 436 | LLLogChat::saveHistory(getTitle(),histstr); |
433 | } | 437 | } |