diff options
author | Armin Weatherwax | 2010-05-01 16:32:22 +0200 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:05:26 -0500 |
commit | d982c1938f6bff25b433845db479a2506d2b0b11 (patch) | |
tree | d843a613e92bebc4edd8e43594c5e124de04f698 /linden/indra/newview/llviewermessage.cpp | |
parent | Tidied up the radar xml some and increased the default width (diff) | |
download | meta-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/llviewermessage.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
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; |