Attempt to solve Issue 935: Script Chat Show The Owner?
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user