diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/llmessage/llmessageconfig.cpp | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llmessageconfig.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llmessageconfig.cpp b/linden/indra/llmessage/llmessageconfig.cpp index a619e80..78e22dd 100644 --- a/linden/indra/llmessage/llmessageconfig.cpp +++ b/linden/indra/llmessage/llmessageconfig.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llmessageconfig.cpp | 2 | * @file llmessageconfig.cpp |
3 | * @brief Live file handling for messaging | 3 | * @brief Live file handling for messaging |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2000&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2000-2007, Linden Research, Inc. | 7 | * Copyright (c) 2000-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #include "linden_common.h" | 32 | #include "linden_common.h" |
@@ -50,10 +53,10 @@ class LLMessageConfigFile : public LLLiveFile | |||
50 | { | 53 | { |
51 | public: | 54 | public: |
52 | LLMessageConfigFile() | 55 | LLMessageConfigFile() |
53 | : LLLiveFile(fileName(), messageConfigRefreshRate) | 56 | : LLLiveFile(filename(), messageConfigRefreshRate) |
54 | { } | 57 | { } |
55 | 58 | ||
56 | static std::string fileName(); | 59 | static std::string filename(); |
57 | 60 | ||
58 | LLSD mMessages; | 61 | LLSD mMessages; |
59 | std::string mServerDefault; | 62 | std::string mServerDefault; |
@@ -72,7 +75,7 @@ public: | |||
72 | LLSD mCapBans; | 75 | LLSD mCapBans; |
73 | }; | 76 | }; |
74 | 77 | ||
75 | std::string LLMessageConfigFile::fileName() | 78 | std::string LLMessageConfigFile::filename() |
76 | { | 79 | { |
77 | std::ostringstream ostr; | 80 | std::ostringstream ostr; |
78 | ostr << sConfigDir//gAppSimp->getOption("configdir").asString() | 81 | ostr << sConfigDir//gAppSimp->getOption("configdir").asString() |
@@ -93,9 +96,10 @@ void LLMessageConfigFile::loadFile() | |||
93 | LLSD data; | 96 | LLSD data; |
94 | { | 97 | { |
95 | llifstream file(filename().c_str()); | 98 | llifstream file(filename().c_str()); |
99 | |||
96 | if (file.is_open()) | 100 | if (file.is_open()) |
97 | { | 101 | { |
98 | llinfos << "Loading message.xml file at " << fileName() << llendl; | 102 | llinfos << "Loading message.xml file at " << filename() << llendl; |
99 | LLSDSerialize::fromXML(data, file); | 103 | LLSDSerialize::fromXML(data, file); |
100 | } | 104 | } |
101 | 105 | ||