aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llmessageconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/llmessageconfig.cpp')
-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);