aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llmessageconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llmessageconfig.cpp16
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!
259LLSD 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}