From 54b75a32196e4ec5482a9d10e82df50f79654bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Mon, 23 Mar 2020 08:44:25 -0400 Subject: [PATCH] Add SinguOwnerSayAsErrors to make llOwnerSay spew to debug console instead --- indra/newview/app_settings/settings_ascent.xml | 11 +++++++++++ indra/newview/llfloaterchat.cpp | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/indra/newview/app_settings/settings_ascent.xml b/indra/newview/app_settings/settings_ascent.xml index 0c74e3164..564e797c3 100644 --- a/indra/newview/app_settings/settings_ascent.xml +++ b/indra/newview/app_settings/settings_ascent.xml @@ -984,6 +984,17 @@ RIP Latif Khalifa. Value 1 + SinguOwnerSayAsErrors + + Comment + llOwnerSay will show up in the script error console instead of in chat. + Persist + 1 + Type + Boolean + Value + 0 + SinguPostProcessDefault Comment diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index a2c7a2d12..2940f6f7c 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -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());