diff options
author | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
commit | 117e22047c5752352342d64e3fb7ce00a4eb8113 (patch) | |
tree | e32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/llmessage/llmessageconfig.cpp | |
parent | Second Life viewer sources 1.18.0.6 (diff) | |
download | meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2 meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz |
Second Life viewer sources 1.18.1.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llmessageconfig.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llmessageconfig.cpp b/linden/indra/llmessage/llmessageconfig.cpp index 8d114a9..6ecb1ad 100644 --- a/linden/indra/llmessage/llmessageconfig.cpp +++ b/linden/indra/llmessage/llmessageconfig.cpp | |||
@@ -252,3 +252,19 @@ bool LLMessageConfig::isCapBanned(const std::string& cap_name) | |||
252 | { | 252 | { |
253 | return LLMessageConfigFile::instance().isCapBanned(cap_name); | 253 | return LLMessageConfigFile::instance().isCapBanned(cap_name); |
254 | } | 254 | } |
255 | |||
256 | // return the web-service path to use for a given | ||
257 | // message. This entry *should* match the entry | ||
258 | // in simulator.xml! | ||
259 | LLSD LLMessageConfig::getConfigForMessage(const std::string& msg_name) | ||
260 | { | ||
261 | if (sServerName.empty()) | ||
262 | { | ||
263 | llerrs << "LLMessageConfig::isMessageTrusted(name) before" | ||
264 | << " LLMessageConfig::initClass()" << llendl; | ||
265 | } | ||
266 | LLMessageConfigFile& file = LLMessageConfigFile::instance(); | ||
267 | // LLSD for the CamelCase message name | ||
268 | LLSD config = file.mMessages[msg_name]; | ||
269 | return config; | ||
270 | } | ||