aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llmessageconfig.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/llmessage/llmessageconfig.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llmessageconfig.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llmessageconfig.cpp b/linden/indra/llmessage/llmessageconfig.cpp
index 0e7f768..807a35b 100644
--- a/linden/indra/llmessage/llmessageconfig.cpp
+++ b/linden/indra/llmessage/llmessageconfig.cpp
@@ -252,6 +252,14 @@ bool LLMessageConfig::isValidMessage(const std::string& msg_name)
252 return file.mMessages.has(msg_name); 252 return file.mMessages.has(msg_name);
253} 253}
254 254
255//static
256bool LLMessageConfig::onlySendLatest(const std::string& msg_name)
257{
258 LLMessageConfigFile& file = LLMessageConfigFile::instance();
259 LLSD config = file.mMessages[msg_name];
260 return config["only-send-latest"].asBoolean();
261}
262
255bool LLMessageConfig::isCapBanned(const std::string& cap_name) 263bool LLMessageConfig::isCapBanned(const std::string& cap_name)
256{ 264{
257 return LLMessageConfigFile::instance().isCapBanned(cap_name); 265 return LLMessageConfigFile::instance().isCapBanned(cap_name);