From 0c607a6b88eef34987fdbd79843b693548f4adec Mon Sep 17 00:00:00 2001
From: Lynx Linden <lynx@lindenlab.com>
Date: Tue, 8 Dec 2009 15:16:04 +0000
Subject: [PATCH] DEV-43679: Pass god mode through to search.

The state of gAgent.isGodlike() is now passed through to the Search
web pages via a new g=[0|1] query parameter.
---
 indra/newview/llfloatersearch.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/indra/newview/llfloatersearch.cpp b/indra/newview/llfloatersearch.cpp
index 4d3724a758b..2c618263ec4 100644
--- a/indra/newview/llfloatersearch.cpp
+++ b/indra/newview/llfloatersearch.cpp
@@ -144,6 +144,10 @@ void LLFloaterSearch::search(const LLSD &key)
 	// add the current localization information
 	url += "&lang=" + LLUI::getLanguage();
 
+	// add the user's god status
+	std::string godlike = gAgent.isGodlike() ? "1" : "0";
+	url += "&g=" + godlike;
+
 	// and load the URL in the web view
 	mBrowser->navigateTo(url);
 }
-- 
GitLab