Attempt to solve Issue 935: Script Chat Show The Owner?

This commit is contained in:
Lirusaito
2013-07-19 10:41:19 -04:00
parent 7f57dd24d8
commit 3be04fc90b

View File

@@ -3583,6 +3583,8 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
LLViewerObject* chatter;
msg->getString("ChatData", "FromName", from_name);
// make sure that we don't have an empty or all-whitespace name
LLStringUtil::trim(from_name);
if (from_name.empty())
{
from_name = LLTrans::getString("Unnamed");