diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index 605e3ece5192c7aaf4b0f9f22efc415d568bc7c2..a33bd8827338c2b01769c8d456cba4f295cdcb90 100644
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -809,7 +809,7 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL
 	if (irc_me || chat.mChatStyle == CHAT_STYLE_IRC)
 	{
 		delimiter = LLStringUtil::null;
-		name_params.font.style = "ITALIC";
+		body_message_params.font.style = "ITALIC";
 	}
 
 	bool message_from_log = chat.mChatStyle == CHAT_STYLE_HISTORY;