Fix for people setting object name to nothing so that you can still click in chat to find out who and where.

This commit is contained in:
TighMacFanatic
2011-05-28 21:45:05 -04:00
parent 3dff6922c2
commit aede4d80e8

View File

@@ -3024,6 +3024,10 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
LLViewerObject* chatter;
msg->getString("ChatData", "FromName", from_name);
if (from_name.empty())
{
from_name = "(no name)";
}
chat.mFromName = from_name;
msg->getUUID("ChatData", "SourceID", from_id);