Add SinguOwnerSayAsErrors to make llOwnerSay spew to debug console instead

This commit is contained in:
Liru Færs
2020-03-23 08:44:25 -04:00
parent 11d59d1b00
commit 54b75a3219
2 changed files with 16 additions and 0 deletions

View File

@@ -984,6 +984,17 @@ RIP Latif Khalifa.</string>
<key>Value</key>
<boolean>1</boolean>
</map>
<key>SinguOwnerSayAsErrors</key>
<map>
<key>Comment</key>
<string>llOwnerSay will show up in the script error console instead of in chat.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<boolean>0</boolean>
</map>
<key>SinguPostProcessDefault</key>
<map>
<key>Comment</key>

View File

@@ -287,6 +287,11 @@ void LLFloaterChat::addChatHistory(LLChat& chat, bool log_to_file)
return;
}
}
else if (chat.mChatType == CHAT_TYPE_OWNER && gSavedSettings.getBOOL("SinguOwnerSayAsErrors"))
{
LLFloaterScriptDebug::addScriptLine(chat, color);
return;
}
// could flash the chat button in the status bar here. JC
LLFloaterChat* chat_floater = LLFloaterChat::getInstance(LLSD());