aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorArmin Weatherwax2010-05-01 16:32:22 +0200
committerJacek Antonelli2010-06-19 02:05:26 -0500
commitd982c1938f6bff25b433845db479a2506d2b0b11 (patch)
treed843a613e92bebc4edd8e43594c5e124de04f698 /linden/indra/newview
parentTidied up the radar xml some and increased the default width (diff)
downloadmeta-impy-d982c1938f6bff25b433845db479a2506d2b0b11.zip
meta-impy-d982c1938f6bff25b433845db479a2506d2b0b11.tar.gz
meta-impy-d982c1938f6bff25b433845db479a2506d2b0b11.tar.bz2
meta-impy-d982c1938f6bff25b433845db479a2506d2b0b11.tar.xz
Make server version change popup optional, also optionally chat it.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/app_settings/settings.xml26
-rw-r--r--linden/indra/newview/llviewermessage.cpp17
2 files changed, 40 insertions, 3 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 2bd56de..19ad234 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -9153,6 +9153,32 @@
9153 <key>Value</key> 9153 <key>Value</key>
9154 <integer>0</integer> 9154 <integer>0</integer>
9155 </map> 9155 </map>
9156
9157<!-- Begin: Notify Server Version Change -->
9158 <key>ServerVersionChangedNotify</key>
9159 <map>
9160 <key>Comment</key>
9161 <string>Whether or not to show the server change as notify popup</string>
9162 <key>Persist</key>
9163 <integer>1</integer>
9164 <key>Type</key>
9165 <string>Boolean</string>
9166 <key>Value</key>
9167 <integer>0</integer>
9168 </map>
9169 <key>ServerVersionChangedChat</key>
9170 <map>
9171 <key>Comment</key>
9172 <string>Whether or not to show the server change as chat message</string>
9173 <key>Persist</key>
9174 <integer>1</integer>
9175 <key>Type</key>
9176 <string>Boolean</string>
9177 <key>Value</key>
9178 <integer>1</integer>
9179 </map>
9180<!-- End: Notify Server Version Change -->
9181
9156 <key>ShareWithGroup</key> 9182 <key>ShareWithGroup</key>
9157 <map> 9183 <map>
9158 <key>Comment</key> 9184 <key>Comment</key>
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index 7a52b84..c6f93ee 100644
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -3439,10 +3439,21 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**)
3439 3439
3440 if (!gLastVersionChannel.empty()) 3440 if (!gLastVersionChannel.empty())
3441 { 3441 {
3442 LLSD payload;
3443 payload["message"] = version_channel;
3444 LLNotifications::instance().add("ServerVersionChanged", LLSD(), payload);
3445 gHippoLimits->setLimits(); 3442 gHippoLimits->setLimits();
3443
3444 if (gSavedSettings.getBOOL("ServerVersionChangedChat"))
3445 {
3446 LLChat chat;
3447 chat.mText = version_channel;
3448 LLFloaterChat::addChat(chat, FALSE, FALSE);
3449 }
3450
3451 if (gSavedSettings.getBOOL("ServerVersionChangedNotify"))
3452 {
3453 LLSD payload;
3454 payload["message"] = version_channel;
3455 LLNotifications::instance().add("ServerVersionChanged", LLSD(), payload);
3456 }
3446 } 3457 }
3447 3458
3448 gLastVersionChannel = version_channel; 3459 gLastVersionChannel = version_channel;