FIRE-11944: Nearby chat logging broken as per 38792

Ansariel 2013-10-22 19:18:56 +02:00
parent 1793283a81
commit a6e3e80eb5
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ void FSFloaterNearbyChat::addMessage(const LLChat& chat,bool archive,const LLSD
// FS:LO FIRE-5230 - Chat Console Improvement: Replacing the "IM" in front of group chat messages with the actual group name
}
// <FS:LO> Make logging IMs to the chat history file toggleable again
if ((chat.mChatType == CHAT_TYPE_IM || chat.mChatType == CHAT_TYPE_IM_GROUP) && gSavedSettings.getBOOL("FSLogIMInChatHistory"))
if (!(chat.mChatType == CHAT_TYPE_IM || chat.mChatType == CHAT_TYPE_IM_GROUP) || gSavedSettings.getBOOL("FSLogIMInChatHistory"))
{
LLLogChat::saveHistory("chat", from_name, chat.mFromID, chat.mText);
}