Commit 394b253c authored by Testicular Slingshot's avatar Testicular Slingshot
Browse files

Stylistic changes.

parent 83eba38a
......@@ -493,7 +493,7 @@ void LLIMProcessing::processNewMessage(LLUUID from_id,
// make sure that we don't have an empty or all-whitespace name
LLStringUtil::trim(name);
static const LLCachedControl<bool> sMarkUnnamedObjects(gSavedSettings, "AlchemyChatMarkUnnamedObjects");
if (name.empty() && sMarkUnnamedObjects)
if (sMarkUnnamedObjects && name.empty())
{
name = LLTrans::getString("Unnamed");
}
......
......@@ -2412,7 +2412,7 @@ void process_chat_from_simulator(LLMessageSystem* msg, void** user_data)
// make sure that we don't have an empty or all-whitespace name
LLStringUtil::trim(from_name);
static const LLCachedControl<bool> sMarkUnnamedObjects(gSavedSettings, "AlchemyChatMarkUnnamedObjects");
if (from_name.empty() && sMarkUnnamedObjects)
if (sMarkUnnamedObjects && from_name.empty())
{
from_name = LLTrans::getString("Unnamed");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment