Skip to content

Commit 54b75a3

Browse files
committed
Add SinguOwnerSayAsErrors to make llOwnerSay spew to debug console instead
1 parent 11d59d1 commit 54b75a3

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

indra/newview/app_settings/settings_ascent.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,17 @@ RIP Latif Khalifa.</string>
984984
<key>Value</key>
985985
<boolean>1</boolean>
986986
</map>
987+
<key>SinguOwnerSayAsErrors</key>
988+
<map>
989+
<key>Comment</key>
990+
<string>llOwnerSay will show up in the script error console instead of in chat.</string>
991+
<key>Persist</key>
992+
<integer>1</integer>
993+
<key>Type</key>
994+
<string>Boolean</string>
995+
<key>Value</key>
996+
<boolean>0</boolean>
997+
</map>
987998
<key>SinguPostProcessDefault</key>
988999
<map>
9891000
<key>Comment</key>

indra/newview/llfloaterchat.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ void LLFloaterChat::addChatHistory(LLChat& chat, bool log_to_file)
287287
return;
288288
}
289289
}
290+
else if (chat.mChatType == CHAT_TYPE_OWNER && gSavedSettings.getBOOL("SinguOwnerSayAsErrors"))
291+
{
292+
LLFloaterScriptDebug::addScriptLine(chat, color);
293+
return;
294+
}
290295

291296
// could flash the chat button in the status bar here. JC
292297
LLFloaterChat* chat_floater = LLFloaterChat::getInstance(LLSD());

0 commit comments

Comments
 (0)