diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index f0bd63ba468da1624c7e391d072a9b9f5a9a6868..b81b95462e3f6b6a1128bd313b7c02a3b726a6b4 100755
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -934,7 +934,7 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL
 	// compact mode: show a timestamp and name
 	if (use_plain_text_chat_history)
 	{
-		square_brackets = chat.mFromName == SYSTEM_FROM;
+		square_brackets = chat.mSourceType == CHAT_SOURCE_SYSTEM;
 
 		LLStyle::Params timestamp_style(body_message_params);